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

add the required manifest field for apps that target API 28 and want … #616

Merged

Conversation

ericafenyo
Copy link
Contributor

Beginning with Android 9, there is an error:

2020-01-13 13:00:07.586 7070-7551/com.transway.weflow E/AndroidRuntime: FATAL EXCEPTION: pool-2-thread-3
    Process: com.transway.weflow, PID: 7070
    java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/client/methods/HttpPost;
        at edu.berkeley.eecs.emission.cordova.comm.CommunicationHelper.pushGetJSON(CommunicationHelper.java:84)
        at edu.berkeley.eecs.emission.cordova.comm.CommunicationHelperPlugin$1.run(CommunicationHelperPlugin.java:27)
        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:919)
     Caused by: java.lang.ClassNotFoundException: Didn't find class "org.apache.http.client.methods.HttpPost" on path: DexPathList[[zip file "/data/app/com.transway.weflow-NCsRDbNfqa4kWUPSGF3VJQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.transway.weflow-NCsRDbNfqa4kWUPSGF3VJQ==/lib/arm64, /system/lib64]]
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:196)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
        at edu.berkeley.eecs.emission.cordova.comm.CommunicationHelper.pushGetJSON(CommunicationHelper.java:84at edu.berkeley.eecs.emission.cordova.comm.CommunicationHelperPlugin$1.run(CommunicationHelperPlugin.java:27at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641at java.lang.Thread.run(Thread.java:919

that can be fixed by a manifest update.

https://stackoverflow.com/questions/52549112/failed-resolution-of-lorg-apache-http-client-methods-httppost

…to continue using the legacy Apache HTTP client.
@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@shankari
Copy link
Contributor

@ericafenyo thank you for the update!

@shankari shankari merged commit a2bc8dc into e-mission:master Mar 30, 2020
shankari added a commit to shankari/e-mission-phone that referenced this pull request Mar 30, 2020
The related manifest change was already checked in thanks to @ericafenyo
(e-mission#616)
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

Successfully merging this pull request may close these issues.

3 participants