首页 > 解决方案 > Application stops before showing anything

问题描述

I've got some problems, only one for now.

I deploy my application to Google Play about 2 months ago, and yesterday I received an email relating the app does not open in a device and it break before open, showing on the screen "Unfortunately, (?) Has stopped". It runs normaly in another device, but not in the "J3 (2016) android version 5.11's user".

I opened the Google Play Console, and looked for answers in ANR's menu. I found this:

**java.lang.NoSuchMethodError:**
at md5846bd09d5a4e74db0c2de01aa9d1e1cf.MainActivity.n_onCreate (Native Method)
at md5846bd09d5a4e74db0c2de01aa9d1e1cf.MainActivity.onCreate (MainActivity.java:30)
at android.app.Activity.performCreate (Activity.java:6609)
at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1134)
at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3113)
at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3275)
at android.app.ActivityThread.access$1000 (ActivityThread.java:218)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1744)
at android.os.Handler.dispatchMessage (Handler.java:102)
at android.os.Looper.loop (Looper.java:145)
at android.app.ActivityThread.main (ActivityThread.java:7007)
at java.lang.reflect.Method.invoke (Native Method)
at java.lang.reflect.Method.invoke (Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1404)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1199)

I'll try to reproduce this error via android emulator. Does anybody seen this before, know how to solve and can help me?

Thank you guys.

标签: androidxamarin.formsxamarin.androidgoogle-console-developer

解决方案


看起来您正在使用 Android 5 不支持的应用程序的本机代码执行某些操作。从出现的评论中,您可以在模拟器中重现此内容。因此,找出问题所在的下一步是查看您的本机代码,甚至在您的模拟器中使用本机代码调试来找出它失败的原因。

这里有一些关于Androud Studio 中本机代码调试的文档。


推荐阅读