gpt4 book ai didi

android - DJI-SDK : Lorg/apache/http/params/BasicHttpParams; 解析失败

转载 作者:塔克拉玛干 更新时间:2023-11-02 19:56:17 26 4
gpt4 key购买 nike

将我的手机更新到 Android 9 并将 sdk 版本更新到 4.8.1 后,我在尝试注册 sdk 时遇到问题:

java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/params/BasicHttpParams;
at dji.thirdparty.afinal.FinalHttp.<init>(Unknown Source:12)
at com.dji.frame.util.V_AppUtils.b(Unknown Source:9)
at dji.internal.version.b.a(Unknown Source:43)
at dji.internal.version.d.a(Unknown Source:8)
at dji.internal.version.VersionController.a(Unknown Source:12)
at dji.sdk.sdkmanager.DJISDKManager.initParams(Unknown Source:49)
at dji.sdk.sdkmanager.DJISDKManager.initSDKManager(Unknown Source:129)
at dji.sdk.sdkmanager.DJISDKManager.access$1100(Unknown Source:0)
at dji.sdk.sdkmanager.DJISDKManager$5.run(Unknown Source:104)
at java.lang.Thread.run(Thread.java:764)
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.apache.http.params.BasicHttpParams" on path: DexPathList[[zip file "/system/framework/com.android.future.usb.accessory.jar", zip file "/data/app/com.paragon.defenders-aSWKRXZFLeJtYnRdOEyUKQ==/base.apk", zip file "/data/app/com.paragon.defenders-aSWKRXZFLeJtYnRdOEyUKQ==/split_lib_dependencies_apk.apk", zip file "/data/app/com.paragon.defenders-aSWKRXZFLeJtYnRdOEyUKQ==/split_lib_resources_apk.apk", zip file "/data/app/com.paragon.defenders-aSWKRXZFLeJtYnRdOEyUKQ==/split_lib_slice_0_apk.apk", zip file "/data/app/com.paragon.defenders-aSWKRXZFLeJtYnRdOEyUKQ==/split_lib_slice_1_apk.apk", zip file "/data/app/com.paragon.defenders-aSWKRXZFLeJtYnRdOEyUKQ==/split_lib_slice_2_apk.apk", zip file "/data/app/com.paragon.defenders-aSWKRXZFLeJtYnRdOEyUKQ==/split_lib_slice_3_apk.apk", zip file "/data/app/com.paragon.defenders-aSWKRXZFLeJtYnRdOEyUKQ==/split_lib_slice_4_apk.apk", zip file "/data/app/com.paragon.defenders-aSWKRXZFLeJtYnRdOEyUKQ==/split_lib_slice_5_apk.apk", zip file "/data/app/com.paragon.defenders-aSWKRXZFLeJtYnRdOEyUKQ==/split_lib_slice_6_apk.apk", zip file "/data/app/com.paragon.defenders-aSWKRXZFLeJtYnRdOEyUKQ==/split_lib_slice_7_apk.apk", zip file "/data/app/com.paragon.defenders-aSWKRXZFLeJtYnRdOEyUKQ==/split_lib_slice_8_apk.apk", zip file "/data/app/com.paragon.defenders-aSWKRXZFLeJtYnRdOEyUKQ==/split_lib_slice_9_apk.apk", dex file "InMemoryDexFile[cookie=[0, 505806403584]]", dex file "InMemoryDexFile[cookie=[0, 505806404160]]"],nativeLibraryDirectories=[/data/app/com.paragon.defenders-aSWKRXZFLeJtYnRdOEyUKQ==/lib/arm64, /data/app/com.paragon.defenders-aSWKRXZFLeJtYnRdOEyUKQ==/base.apk!/lib/arm64-v8a, /data/app/com.paragon.defenders-aSWKRXZFLeJtYnRdOEyUKQ==/split_lib_dependencies_apk.apk!/lib/arm64-v8a, /data/app/com.paragon.defenders-aSWKRXZFLeJtYnRdOEyUKQ==/split_lib_resources_apk.apk!/lib/arm64-v8a, /data/app/com.paragon.defenders-aSWKRXZFLeJtYnRdOEyUKQ==/split_lib_slice_0_apk.apk!/lib/arm64-v8a, /data/app/com.paragon.defenders-aSWKRXZFLeJtYnRdOEyUKQ==/split_lib_slice_1_apk.apk!/lib/arm64-v8a, /data/app/com.paragon.defenders-aSWKRXZFLeJtYnRdOEyUKQ==/split_lib_slice_2_apk.apk!/lib/arm64-v8a, /data/app/com.paragon.defenders-aSWKRXZFLeJtYnRdOEyUKQ==/split_lib_slice_3_apk.apk!/lib/arm64-v8a, /data/app/com.paragon.defenders-aSWKRXZFLeJtYnRdOEyUKQ==/split_lib_slice_4_apk.apk!/lib/arm64-v8a, /data/app/com.paragon.defenders-aSWKRXZFLeJtYnRdOEyUKQ==/split_lib_slice_5_apk.apk!/lib/arm64-v8a, /data/app/com.paragon.defenders-aSWKRXZFLeJtYnRdOEyUKQ==/split_lib_slice_6_apk.apk!/lib/arm64-v8a, /data/app/com.paragon.defenders-aSWKRXZFLeJtYnRdOEyUKQ==/split_lib_slice_7_apk.apk!/lib/arm64-v8a, /data/app/com.paragon.defenders-aSWKRXZFLeJtYnRdOEyUKQ==/split_lib_slice_8_apk.apk!/lib/arm64-v8a, /data/app/com.paragon.defenders-aSWKRXZFLeJtYnRdOEyUKQ==/split_lib_slice_9_apk.apk!/lib/arm64-v8a, /system/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:169)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at dji.thirdparty.afinal.FinalHttp.<init>(Unknown Source:12) 
at com.dji.frame.util.V_AppUtils.b(Unknown Source:9) 
at dji.internal.version.b.a(Unknown Source:43) 
at dji.internal.version.d.a(Unknown Source:8) 
at dji.internal.version.VersionController.a(Unknown Source:12) 
at dji.sdk.sdkmanager.DJISDKManager.initParams(Unknown Source:49) 
at dji.sdk.sdkmanager.DJISDKManager.initSDKManager(Unknown Source:129) 
at dji.sdk.sdkmanager.DJISDKManager.access$1100(Unknown Source:0) 
at dji.sdk.sdkmanager.DJISDKManager$5.run(Unknown Source:104) 
at java.lang.Thread.run(Thread.java:764) 
2019-01-10 12:02:39.820 8784-8840/com.paragon.defenders E/AndroidRuntime: Suppressed: java.io.IOException: No original dex files found for dex location /data/app/com.paragon.defenders-aSWKRXZFLeJtYnRdOEyUKQ==/split_lib_resources_apk.apk
at dalvik.system.DexFile.openDexFileNative(Native Method)
at dalvik.system.DexFile.openDexFile(DexFile.java:354)
at dalvik.system.DexFile.<init>(DexFile.java:101)
at dalvik.system.DexFile.<init>(DexFile.java:75)
at dalvik.system.DexPathList.loadDexFile(DexPathList.java:394)
at dalvik.system.DexPathList.makeDexElements(DexPathList.java:354)
at dalvik.system.DexPathList.<init>(DexPathList.java:164)
at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:83)
at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:74)
at dalvik.system.PathClassLoader.<init>(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:735)
at android.app.LoadedApk.getClassLoader(LoadedApk.java:818)
at android.app.LoadedApk.getResources(LoadedApk.java:1041)
at android.app.ContextImpl.createAppContext(ContextImpl.java:2394)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5913)
at android.app.ActivityThread.access$1300(ActivityThread.java:207)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1748)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6863)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

是否还有其他依赖项需要更新?还是目前 4.8.1 版本对于 Android 9 还不稳定?

我的设备 - OnePlus 6T

最佳答案

问题的原因是Apache HTTP client deprecation从 Android 9 开始。

将此添加到您的 AndroidManifest.xml 以修复:

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

关于android - DJI-SDK : Lorg/apache/http/params/BasicHttpParams; 解析失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54126327/

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