Skip to content
This repository has been archived by the owner on Sep 17, 2019. It is now read-only.

Application has stopped on nexus 5x (7.1.1) #29

Closed
keoni29 opened this issue Mar 29, 2017 · 0 comments
Closed

Application has stopped on nexus 5x (7.1.1) #29

keoni29 opened this issue Mar 29, 2017 · 0 comments

Comments

@keoni29
Copy link

keoni29 commented Mar 29, 2017

I built this application and deployed the apk to a nexus 5x with android 7.1.1. The application stops immediately after launching it.

Log:

03-30 10:21:27.570 15188-15188/com.example.android.bluetoothlegatt W/System: ClassLoader referenced unknown path: /data/app/com.example.android.bluetoothlegatt-1/lib/arm64
03-30 10:21:27.581 15188-15188/com.example.android.bluetoothlegatt D/AndroidRuntime: Shutting down VM
03-30 10:21:27.582 15188-15188/com.example.android.bluetoothlegatt E/AndroidRuntime: FATAL EXCEPTION: main
                                                                                     Process: com.example.android.bluetoothlegatt, PID: 15188
                                                                                     java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.android.bluetoothlegatt/com.example.android.bluetoothlegatt.DeviceScanActivity}: java.lang.ClassNotFoundException: Didn't find class "com.example.android.bluetoothlegatt.DeviceScanActivity" on path: DexPathList[[zip file "/data/app/com.example.android.bluetoothlegatt-1/base.apk"],nativeLibraryDirectories=[/data/app/com.example.android.bluetoothlegatt-1/lib/arm64, /system/lib64, /vendor/lib64]]
                                                                                         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2567)
                                                                                         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
                                                                                         at android.app.ActivityThread.-wrap12(ActivityThread.java)
                                                                                         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
                                                                                         at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                                         at android.os.Looper.loop(Looper.java:154)
                                                                                         at android.app.ActivityThread.main(ActivityThread.java:6119)
                                                                                         at java.lang.reflect.Method.invoke(Native Method)
                                                                                         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
                                                                                         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
                                                                                      Caused by: java.lang.ClassNotFoundException: Didn't find class "com.example.android.bluetoothlegatt.DeviceScanActivity" on path: DexPathList[[zip file "/data/app/com.example.android.bluetoothlegatt-1/base.apk"],nativeLibraryDirectories=[/data/app/com.example.android.bluetoothlegatt-1/lib/arm64, /system/lib64, /vendor/lib64]]
                                                                                         at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
                                                                                         at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
                                                                                         at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
                                                                                         at android.app.Instrumentation.newActivity(Instrumentation.java:1078)
                                                                                         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2557)
                                                                                         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726) 
                                                                                         at android.app.ActivityThread.-wrap12(ActivityThread.java) 
                                                                                         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477) 
                                                                                         at android.os.Handler.dispatchMessage(Handler.java:102) 
                                                                                         at android.os.Looper.loop(Looper.java:154) 
                                                                                         at android.app.ActivityThread.main(ActivityThread.java:6119) 
                                                                                         at java.lang.reflect.Method.invoke(Native Method) 
                                                                                         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) 
                                                                                         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)

Edit: Solved by changing minimal sdk version to 25. Min version 18 does not work for my device.

@keoni29 keoni29 closed this as completed Mar 30, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant