osmandapp / osmand-api-demo

Example of usage OsmAnd API
91 stars 46 forks source link

Force close in Nokia 8.1 and Android version 11 #46

Open LeLuyen opened 3 years ago

LeLuyen commented 3 years ago

1) OsmAnd-api-sample

2021-10-23 11:51:37.372 18509-18509/net.osmand.osmandapidemo E/AndroidRuntime: FATAL EXCEPTION: main Process: net.osmand.osmandapidemo, PID: 18509 java.lang.NoSuchMethodError: No static method metafactory(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; in class Ljava/lang/invoke/LambdaMetafactory; or its super classes (declaration of 'java.lang.invoke.LambdaMetafactory' appears in /apex/com.android.art/javalib/core-oj.jar) at main.java.net.osmand.osmandapidemo.MainActivity.onCreate(MainActivity.kt:814) at android.app.Activity.performCreate(Activity.java:8000) at android.app.Activity.performCreate(Activity.java:7984) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1310) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3423) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3602) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2067) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:223) at android.app.ActivityThread.main(ActivityThread.java:7697) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:952)

2) OsmAnd-map-sample 2021-10-23 11:49:57.497 18372-18372/? E/LoadedApk: Unable to instantiate appComponentFactory java.lang.ClassNotFoundException: Didn't find class "androidx.core.app.CoreComponentFactory" on path: DexPathList[[zip file "/data/app/8Jt60NyWeafeRCG9mtWQhA==/net.osmand.library.sample-OFoeDYJC-gGfSrAo8iSOxQ==/base.apk"],nativeLibraryDirectories=[/data/app/8Jt60NyWeafeRCG9mtWQhA==/net.osmand.library.sample-OFoeDYJC-gGfSrAo8iSOxQ==/lib/arm64, /data/app/~~8Jt60NyWeafeRCG9mtWQhA==/net.osmand.library.sample-OFoeDYJC-gGfSrAo8iSOxQ==/base.apk!/lib/arm64-v8a, /system/lib64, /system/system_ext/lib64]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:207) at java.lang.ClassLoader.loadClass(ClassLoader.java:379) at java.lang.ClassLoader.loadClass(ClassLoader.java:312) at android.app.LoadedApk.createAppFactory(LoadedApk.java:260) at android.app.LoadedApk.createOrUpdateClassLoaderLocked(LoadedApk.java:902) at android.app.LoadedApk.getClassLoader(LoadedApk.java:982) at android.app.LoadedApk.getResources(LoadedApk.java:1214) at android.app.ContextImpl.createAppContext(ContextImpl.java:2659) at android.app.ContextImpl.createAppContext(ContextImpl.java:2651) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6605) at android.app.ActivityThread.access$1300(ActivityThread.java:238) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1914) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:223) at android.app.ActivityThread.main(ActivityThread.java:7697) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:952) Suppressed: java.io.IOException: Failed to open dex files from /data/app/8Jt60NyWeafeRCG9mtWQhA==/net.osmand.library.sample-OFoeDYJC-gGfSrAo8iSOxQ==/base.apk because: Failure to verify dex file '/data/app/8Jt60NyWeafeRCG9mtWQhA==/net.osmand.library.sample-OFoeDYJC-gGfSrAo8iSOxQ==/base.apk': Bad index for method_handle_item method_idx: ffff >= ff84 at dalvik.system.DexFile.openDexFileNative(Native Method) at dalvik.system.DexFile.openDexFile(DexFile.java:367) at dalvik.system.DexFile.(DexFile.java:109) at dalvik.system.DexFile.(DexFile.java:82) at dalvik.system.DexPathList.loadDexFile(DexPathList.java:439) at dalvik.system.DexPathList.makeDexElements(DexPathList.java:398) at dalvik.system.DexPathList.(DexPathList.java:166) at dalvik.system.BaseDexClassLoader.(BaseDexClassLoader.java:129) at dalvik.system.BaseDexClassLoader.(BaseDexClassLoader.java:104) at dalvik.system.PathClassLoader.(PathClassLoader.java:74) at com.android.internal.os.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:87) at com.android.internal.os.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:116) at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:114) at android.app.ApplicationLoaders.getClassLoaderWithSharedLibraries(ApplicationLoaders.java:60) at android.app.LoadedApk.createOrUpdateClassLoaderLocked(LoadedApk.java:898) ... 13 more 2021-10-23 11:49:57.515 18372-18372/? E/AndroidRuntime: FATAL EXCEPTION: main Process: net.osmand.library.sample, PID: 18372 java.lang.RuntimeException: Unable to instantiate application net.osmand.library.sample.SampleApplication: java.lang.ClassNotFoundException: Didn't find class "net.osmand.library.sample.SampleApplication" on path: DexPathList[[zip file "/data/app/8Jt60NyWeafeRCG9mtWQhA==/net.osmand.library.sample-OFoeDYJC-gGfSrAo8iSOxQ==/base.apk"],nativeLibraryDirectories=[/data/app/8Jt60NyWeafeRCG9mtWQhA==/net.osmand.library.sample-OFoeDYJC-gGfSrAo8iSOxQ==/lib/arm64, /data/app/~~8Jt60NyWeafeRCG9mtWQhA==/net.osmand.library.sample-OFoeDYJC-gGfSrAo8iSOxQ==/base.apk!/lib/arm64-v8a, /system/lib64, /system/system_ext/lib64]] at android.app.LoadedApk.makeApplication(LoadedApk.java:1268) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6702) at android.app.ActivityThread.access$1300(ActivityThread.java:238) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1914) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:223) at android.app.ActivityThread.main(ActivityThread.java:7697) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:952) Caused by: java.lang.ClassNotFoundException: Didn't find class "net.osmand.library.sample.SampleApplication" on path: DexPathList[[zip file "/data/app/8Jt60NyWeafeRCG9mtWQhA==/net.osmand.library.sample-OFoeDYJC-gGfSrAo8iSOxQ==/base.apk"],nativeLibraryDirectories=[/data/app/8Jt60NyWeafeRCG9mtWQhA==/net.osmand.library.sample-OFoeDYJC-gGfSrAo8iSOxQ==/lib/arm64, /data/app/~~8Jt60NyWeafeRCG9mtWQhA==/net.osmand.library.sample-OFoeDYJC-gGfSrAo8iSOxQ==/base.apk!/lib/arm64-v8a, /system/lib64, /system/system_ext/lib64]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:207) at java.lang.ClassLoader.loadClass(ClassLoader.java:379) at java.lang.ClassLoader.loadClass(ClassLoader.java:312) at android.app.AppComponentFactory.instantiateApplication(AppComponentFactory.java:76) at android.app.Instrumentation.newApplication(Instrumentation.java:1159) at android.app.LoadedApk.makeApplication(LoadedApk.java:1260) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6702)  at android.app.ActivityThread.access$1300(ActivityThread.java:238)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1914)  at android.os.Handler.dispatchMessage(Handler.java:106)  at android.os.Looper.loop(Looper.java:223)  at android.app.ActivityThread.main(ActivityThread.java:7697)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:952)  Suppressed: java.io.IOException: Failed to open dex files from /data/app/8Jt60NyWeafeRCG9mtWQhA==/net.osmand.library.sample-OFoeDYJC-gGfSrAo8iSOxQ==/base.apk because: Failure to verify dex file '/data/app/8Jt60NyWeafeRCG9mtWQhA==/net.osmand.library.sample-OFoeDYJC-gGfSrAo8iSOxQ==/base.apk': Bad index for method_handle_item method_idx: ffff >= ff84 at dalvik.system.DexFile.openDexFileNative(Native Method) at dalvik.system.DexFile.openDexFile(DexFile.java:367) at dalvik.system.DexFile.(DexFile.java:109) at dalvik.system.DexFile.(DexFile.java:82) at dalvik.system.DexPathList.loadDexFile(DexPathList.java:439) at dalvik.system.DexPathList.makeDexElements(DexPathList.java:398) at dalvik.system.DexPathList.(DexPathList.java:166) at dalvik.system.BaseDexClassLoader.(BaseDexClassLoader.java:129) at dalvik.system.BaseDexClassLoader.(BaseDexClassLoader.java:104) at dalvik.system.PathClassLoader.(PathClassLoader.java:74) at com.android.internal.os.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:87) at com.android.internal.os.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:116) at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:114) at android.app.ApplicationLoaders.getClassLoaderWithSharedLibraries(ApplicationLoaders.java:60) at android.app.LoadedApk.createOrUpdateClassLoaderLocked(LoadedApk.java:898) at android.app.LoadedApk.getClassLoader(LoadedApk.java:982) at android.app.LoadedApk.getResources(LoadedApk.java:1214) at android.app.ContextImpl.createAppContext(ContextImpl.java:2659) at android.app.ContextImpl.createAppContext(ContextImpl.java:2651) 2021-10-23 11:49:57.515 18372-18372/? E/AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6605) ... 8 more