Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Pie Issue #8

Open
benskarunya opened this issue Apr 10, 2019 · 2 comments
Open

Android Pie Issue #8

benskarunya opened this issue Apr 10, 2019 · 2 comments

Comments

@benskarunya
Copy link

benskarunya commented Apr 10, 2019

@derek82511

I am getting below issue after updated to 1.0.6 with cordova [email protected]. Please need help!

E/AndroidRuntime: FATAL EXCEPTION: pool-14-thread-2
Process: xxxx, PID: 29188
java.lang.NoClassDefFoundError: Failed resolution of: [Lorg/apache/http/Header;
at com.microsoft.windowsazure.messaging.NotificationHub.refreshRegistrationInformation(NotificationHub.java:296)
at com.microsoft.windowsazure.messaging.NotificationHub.registerInternal(NotificationHub.java:390)
at com.microsoft.windowsazure.messaging.NotificationHub.register(NotificationHub.java:143)
at com.adobe.phonegap.push.PushPlugin$1.run(PushPlugin.java:216)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:764)
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.apache.http.Header" on path: DexPathList[[zip file "/data/app/xxxx-GplJV9zj3b-p5EEpKDrq2g==/base.apk", zip file "/data/app/xxxx-GplJV9zj3b-p5EEpKDrq2g==/split_lib_dependencies_apk.apk", zip file "/data/app/xxxx-GplJV9zj3b-p5EEpKDrq2g==/split_lib_resources_apk.apk", zip file "/data/app/xxxx-GplJV9zj3b-p5EEpKDrq2g==/split_lib_slice_0_apk.apk", zip file "/data/app/xxxx-GplJV9zj3b-p5EEpKDrq2g==/split_lib_slice_1_apk.apk", zip file "/data/app/xxxx-GplJV9zj3b-p5EEpKDrq2g==/split_lib_slice_2_apk.apk", zip file "/data/app/xxxx-GplJV9zj3b-p5EEpKDrq2g==/split_lib_slice_3_apk.apk", zip file "/data/app/xxxx-GplJV9zj3b-p5EEpKDrq2g==/split_lib_slice_4_apk.apk", zip file "/data/app/xxxx-GplJV9zj3b-p5EEpKDrq2g==/split_lib_slice_5_apk.apk", zip file "/data/app/xxxx-GplJV9zj3b-p5EEpKDrq2g==/split_lib_slice_6_apk.apk", zip file "/data/app/xxxx-GplJV9zj3b-p5EEpKDrq2g==/split_lib_slice_7_apk.apk", zip file "/data/app/xxxx-GplJV9zj3b-p5EEpKDrq2g==/split_lib_slice_8_apk.apk", zip file "/data/app/xxxx-GplJV9zj3b-p5EEpKDrq2g==/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/xxxx-GplJV9zj3b-p5EEpKDrq2g==/lib/arm64, /system/lib64, /system/vendor/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at com.microsoft.windowsazure.messaging.NotificationHub.refreshRegistrationInformation(NotificationHub.java:296) 
at com.microsoft.windowsazure.messaging.NotificationHub.registerInternal(NotificationHub.java:390) 
at com.microsoft.windowsazure.messaging.NotificationHub.register(NotificationHub.java:143) 
at com.adobe.phonegap.push.PushPlugin$1.run(PushPlugin.java:216) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 
at java.lang.Thread.run(Thread.java:764) 
Suppressed: java.io.IOException: No original dex files found for dex location (arm64) /data/app/xxxx-GplJV9zj3b-p5EEpKDrq2g==/split_lib_resources_apk.apk
at dalvik.system.DexFile.openDexFileNative(Native Method)
at dalvik.system.DexFile.openDexFile(DexFile.java:354)
at dalvik.system.DexFile.(DexFile.java:101)
at dalvik.system.DexFile.(DexFile.java:75)
at dalvik.system.DexPathList.loadDexFile(DexPathList.java:394)
at dalvik.system.DexPathList.makeDexElements(DexPathList.java:354)
at dalvik.system.DexPathList.(DexPathList.java:164)
at dalvik.system.BaseDexClassLoader.(BaseDexClassLoader.java:74)
at dalvik.system.BaseDexClassLoader.(BaseDexClassLoader.java:65)
at dalvik.system.PathClassLoader.(PathClassLoader.java:64)
at com.android.internal.os.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:73)
at com.android.internal.os.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:88)
at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:74)
at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:40)
at android.app.LoadedApk.createOrUpdateClassLoaderLocked(LoadedApk.java:764)
at android.app.LoadedApk.getClassLoader(LoadedApk.java:847)
at android.app.LoadedApk.getResources(LoadedApk.java:1088)
at android.app.ContextImpl.createAppContext(ContextImpl.java:2563)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6095)
at android.app.ActivityThread.access$1200(ActivityThread.java:237)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1785)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7045)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964)

@benskarunya
Copy link
Author

benskarunya commented Apr 10, 2019

I have fixed this issue by adding below line in the AndroidMainfest.xml file,

App crashed due to ‘Apache HTTP client deprecation’. Beginning with Android 9, that library is removed from the bootclasspath and is not available to apps by default.

To continue using the Apache HTTP client, apps that target Android 9 and above can add the following to their AndroidManifest.xml:

https://developer.android.com/about/versions/pie/android-9.0-changes-28#apache-p

@derek82511
Copy link
Owner

@benskarunya Thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants