gpt4 book ai didi

android - : Lorg/apache/http/client/methods/HttpPost 解析失败

转载 作者:太空狗 更新时间:2023-10-29 15:50:00 27 4
gpt4 key购买 nike

httpPost 在所有 8.1 及以下版本的 android 设备中运行,但在 android 9.0 中运行时出现如下错误,

Failed resolution of: Lorg/apache/http/client/methods/HttpPost;
at com.makemusiccount.android.retrofit.RestClient.Execute(RestClient.java:99)
at com.makemusiccount.android.activity.LoginActivity$Login.doInBackground(LoginActivity.java:390)
at com.makemusiccount.android.activity.LoginActivity$Login.doInBackground(LoginActivity.java:368)
at android.os.AsyncTask$2.call(AsyncTask.java:333)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245) 
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.client.methods.HttpPost" on path: DexPathList[[zip file "/data/app/com.makemusiccount.android-HYy0YZQPLivvJM2dD3B3ZA==/base.apk", zip file "/data/app/com.makemusiccount.android-HYy0YZQPLivvJM2dD3B3ZA==/split_lib_dependencies_apk.apk", zip file "/data/app/com.makemusiccount.android-HYy0YZQPLivvJM2dD3B3ZA==/split_lib_resources_apk.apk", zip file "/data/app/com.makemusiccount.android-HYy0YZQPLivvJM2dD3B3ZA==/split_lib_slice_0_apk.apk", zip file "/data/app/com.makemusiccount.android-HYy0YZQPLivvJM2dD3B3ZA==/split_lib_slice_1_apk.apk", zip file "/data/app/com.makemusiccount.android-HYy0YZQPLivvJM2dD3B3ZA==/split_lib_slice_2_apk.apk", zip file "/data/app/com.makemusiccount.android-HYy0YZQPLivvJM2dD3B3ZA==/split_lib_slice_3_apk.apk", zip file "/data/app/com.makemusiccount.android-HYy0YZQPLivvJM2dD3B3ZA==/split_lib_slice_4_apk.apk", zip file "/data/app/com.makemusiccount.android-HYy0YZQPLivvJM2dD3B3ZA==/split_lib_slice_5_apk.apk", zip file "/data/app/com.makemusiccount.android-HYy0YZQPLivvJM2dD3B3ZA==/split_lib_slice_6_apk.apk", zip file "/data/app/com.makemusiccount.android-HYy0YZQPLivvJM2dD3B3ZA==/split_lib_slice_7_apk.apk", zip file "/data/app/com.makemusiccount.android-HYy0YZQPLivvJM2dD3B3ZA==/split_lib_slice_8_apk.apk", zip file "/data/app/com.makemusiccount.android-HYy0YZQPLivvJM2dD3B3ZA==/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.makemusiccount.android-HYy0YZQPLivvJM2dD3B3ZA==/lib/x86, /system/lib]]

最佳答案

将这一行添加到您的 manifest.xml 的应用程序标签中

<uses-library android:name="org.apache.http.legacy" android:required="false"/>

关于android - : Lorg/apache/http/client/methods/HttpPost 解析失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52549112/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com