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.
I found where the error occours, thank God! After a long code analysis day, I found my error, and it is related with permission request, and works like that:
-From Android 6.0 to up, the applications need to ask permission to use some functionalities from the device (I did this structure). But what happens is that, below to 6.0, needn't to request permission, and then I had a conflict.
So, I did a conditional structure to verify the device's Android Version, and depending of its version, will or not request permissions.