android - 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.
解决方案
看起来您正在使用 Android 5 不支持的应用程序的本机代码执行某些操作。从出现的评论中,您可以在模拟器中重现此内容。因此,找出问题所在的下一步是查看您的本机代码,甚至在您的模拟器中使用本机代码调试来找出它失败的原因。
这里有一些关于Androud Studio 中本机代码调试的文档。
推荐阅读
- python - Selenium:无法用发送键和执行脚本填充输入字段
- png - BMP 文件到 PNG 文件转换器
- aix - 在 AIX 7.1 上检查文件对于给定用户是否可执行的命令
- reactjs - 获取位置的未知错误 GeolocationPositionError 代码 2 - Firefox Linux Mint
- ios - 使用 AWS Appsync 和 GraphQL 查询 Dynamo DB 中的多个表
- java - hadoop3.1.3无法运行jar文件
- reactjs - 如何使用 react-native 处理自定义字体和 fontWeight
- python - 重塑(n 行 xn 列)python 列表到 pandas DataFame
- php - 将 PEM 格式的公钥传递给 openssl_pkey_get_public 会给出错误:0906D06C:PEM 例程:PEM_read_bio:no start line
- c++ - 如何将节点存储在数组 C++ 中?