Android Adform库不适用于Android 9

时间:2018-11-20 06:58:22

标签: android google-play-services ads

我使用广告表单库(2.13.3)。 但是应用仅在Android 9上出现此崩溃:

Caused by java.lang.ClassNotFoundException: Didn't find class 
"org.apache.http.entity.StringEntity" on path: DexPathList[[zip file "/data/app/com.trondheim.android-tV2q1JK3wt2VDvQ_3neong==/base.apk"],nativeLibraryDirectories=[/data/app/com.trondheim.android-tV2q1JK3wt2VDvQ_3neong==/lib/arm64, /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 com.adform.sdk.network.network.NetworkTask.setJsonEntity(NetworkTask.java:577)
   at com.adform.sdk.services.AdRefreshService.doBeforeExecution(AdRefreshService.java:123)
   at com.adform.sdk.entities.ObservableService$1.run(ObservableService.java:130)
   at android.os.Handler.handleCallback(Handler.java:873)
   at android.os.Handler.dispatchMessage(Handler.java:99)
   at android.os.Looper.loop(Looper.java:193)
   at android.app.ActivityThread.main(ActivityThread.java:6863)
   at java.lang.reflect.Method.invoke(Method.java)
   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

请帮助我解决此问题。

0 个答案:

没有答案