小米8,Android9.0 crash
快捷通支付服务有限公司 发布于2019-04 浏览:5763 回复:34
0
收藏

小米8,Android 9.0,出现了crash。

java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/message/BasicNameValuePair;
at com.baidu.tts.e.a.c(StatHelper.java:192)
at com.baidu.tts.e.a.a(StatHelper.java:154)
at com.baidu.tts.e.a.b(StatHelper.java:130)
at com.baidu.tts.e.a.a(StatHelper.java:88)
at com.baidu.tts.e.b.run(StatThread.java:19)

难道sdk还在用httpClient????

收藏
点赞
0
个赞
共34条回复 最后由用户已被禁言回复于2022-04
#15150******59回复于2019-06
#14 用户已被禁言回复
是否是最新的sdk?改变了什么?

(1) 我跑的是     “语音合成”  的demo

(2)我周五下的,应该是最新的sdk

(3)我修改了  1、 gradle-wrapper.properties 里的变量 我改成distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip;

 2、外层 build.gradle  里的配置   我改成classpath 'com.android.tools.build:gradle:3.3.2';    

3、主model 里build.gradle   compileSdkVersion 28,targetSdkVersion 28

0
#14用户已被禁言回复于2019-06
#13 150******59回复
对的,直接用demo跑的,只是编译的依赖环境改变,编译版本,target都是28,我的测试机是华为 mate 9 Pro
展开

是否是最新的sdk?改变了什么?

0
#13150******59回复于2019-06
#12 用户已被禁言回复
demo报错吗?请问什么机型?

对的,直接用demo跑的,只是编译的依赖环境改变,编译版本,target都是28,我的测试机是华为 mate 9 Pro

0
#12用户已被禁言回复于2019-06
#11 150******59回复
这个是语音合成sdkdemo里报的错,这是不是也是  28编译产物在android9.0上运行的问题 --------- beginning of crash E/AndroidRuntime: FATAL EXCEPTION: Thread-28 Process: com.baidu.tts.sample, PID: 413 java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/message/BasicNameValuePair; at com.baidu.tts.e.a.c(StatHelper.java:192) at com.baidu.tts.e.a.a(StatHelper.java:154) at com.baidu.tts.e.a.b(StatHelper.java:130) at com.baidu.tts.e.a.a(StatHelper.java:88) at com.baidu.tts.e.b.run(StatThread.java:19) Caused by: java.lang.ClassNotFoundException: Didn't find class "org.apache.http.message.BasicNameValuePair" on path: DexPathList[[zip file "/data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/base.apk", zip file "/data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_dependencies_apk.apk", zip file "/data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_resources_apk.apk", zip file "/data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_0_apk.apk", zip file "/data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_1_apk.apk", zip file "/data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_2_apk.apk", zip file "/data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_3_apk.apk", zip file "/data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_4_apk.apk", zip file "/data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_5_apk.apk", zip file "/data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_6_apk.apk", zip file "/data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_7_apk.apk", zip file "/data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_8_apk.apk", zip file "/data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/lib/arm64, /data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/base.apk!/lib/arm64-v8a, /data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_dependencies_apk.apk!/lib/arm64-v8a, /data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_resources_apk.apk!/lib/arm64-v8a, /data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_0_apk.apk!/lib/arm64-v8a, /data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_1_apk.apk!/lib/arm64-v8a, /data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_2_apk.apk!/lib/arm64-v8a, /data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_3_apk.apk!/lib/arm64-v8a, /data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_4_apk.apk!/lib/arm64-v8a, /data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_5_apk.apk!/lib/arm64-v8a, /data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_6_apk.apk!/lib/arm64-v8a, /data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_7_apk.apk!/lib/arm64-v8a, /data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_8_apk.apk!/lib/arm64-v8a, /data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_9_apk.apk!/lib/arm64-v8a, /system/lib64, /product/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.baidu.tts.e.a.c(StatHelper.java:192)  at com.baidu.tts.e.a.a(StatHelper.java:154)  at com.baidu.tts.e.a.b(StatHelper.java:130)  at com.baidu.tts.e.a.a(StatHelper.java:88)  at com.baidu.tts.e.b.run(StatThread.java:19)  Suppressed: java.io.IOException: No original dex files found for dex location /data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/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:84) at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:40) at android.app.LoadedApk.createOrUpdateClassLoaderLocked(LoadedApk.java:788) at android.app.LoadedApk.getClassLoader(LoadedApk.java:871) at android.app.LoadedApk.getResources(LoadedApk.java:1122) at android.app.ContextImpl.createAppContext(ContextImpl.java:2619) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6514) at android.app.ActivityThread.access$2000(ActivityThread.java:268) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1995) at android.os.Handler.dispatchMessage(Handler.java:109) at android.os.Looper.loop(Looper.java:207) at android.app.ActivityThread.main(ActivityThread.java:7539) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)  
展开

demo报错吗?请问什么机型?

0
#11150******59回复于2019-06
#10 用户已被禁言回复
什么问题呢?

这个是语音合成sdkdemo里报的错,这是不是也是  28编译产物在android9.0上运行的问题

--------- beginning of crash
E/AndroidRuntime: FATAL EXCEPTION: Thread-28
Process: com.baidu.tts.sample, PID: 413
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/message/BasicNameValuePair;
at com.baidu.tts.e.a.c(StatHelper.java:192)
at com.baidu.tts.e.a.a(StatHelper.java:154)
at com.baidu.tts.e.a.b(StatHelper.java:130)
at com.baidu.tts.e.a.a(StatHelper.java:88)
at com.baidu.tts.e.b.run(StatThread.java:19)
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.apache.http.message.BasicNameValuePair" on path: DexPathList[[zip file "/data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/base.apk", zip file "/data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_dependencies_apk.apk", zip file "/data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_resources_apk.apk", zip file "/data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_0_apk.apk", zip file "/data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_1_apk.apk", zip file "/data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_2_apk.apk", zip file "/data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_3_apk.apk", zip file "/data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_4_apk.apk", zip file "/data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_5_apk.apk", zip file "/data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_6_apk.apk", zip file "/data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_7_apk.apk", zip file "/data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_8_apk.apk", zip file "/data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/lib/arm64, /data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/base.apk!/lib/arm64-v8a, /data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_dependencies_apk.apk!/lib/arm64-v8a, /data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_resources_apk.apk!/lib/arm64-v8a, /data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_0_apk.apk!/lib/arm64-v8a, /data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_1_apk.apk!/lib/arm64-v8a, /data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_2_apk.apk!/lib/arm64-v8a, /data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_3_apk.apk!/lib/arm64-v8a, /data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_4_apk.apk!/lib/arm64-v8a, /data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_5_apk.apk!/lib/arm64-v8a, /data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_6_apk.apk!/lib/arm64-v8a, /data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_7_apk.apk!/lib/arm64-v8a, /data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_8_apk.apk!/lib/arm64-v8a, /data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/split_lib_slice_9_apk.apk!/lib/arm64-v8a, /system/lib64, /product/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.baidu.tts.e.a.c(StatHelper.java:192) 
at com.baidu.tts.e.a.a(StatHelper.java:154) 
at com.baidu.tts.e.a.b(StatHelper.java:130) 
at com.baidu.tts.e.a.a(StatHelper.java:88) 
at com.baidu.tts.e.b.run(StatThread.java:19) 
Suppressed: java.io.IOException: No original dex files found for dex location /data/app/com.baidu.tts.sample--hPw5iiKBzsl6xUUH29sCA==/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:84)
at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:40)
at android.app.LoadedApk.createOrUpdateClassLoaderLocked(LoadedApk.java:788)
at android.app.LoadedApk.getClassLoader(LoadedApk.java:871)
at android.app.LoadedApk.getResources(LoadedApk.java:1122)
at android.app.ContextImpl.createAppContext(ContextImpl.java:2619)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6514)
at android.app.ActivityThread.access$2000(ActivityThread.java:268)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1995)
at android.os.Handler.dispatchMessage(Handler.java:109)
at android.os.Looper.loop(Looper.java:207)
at android.app.ActivityThread.main(ActivityThread.java:7539)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)

 

0
#10用户已被禁言回复于2019-06
#9 150******59回复
我的离在线语音合成也出现这个问题

什么问题呢?

0
#9150******59回复于2019-06
#8 用户已被禁言回复
您好,28编译问题已修复,SDK已更新。请下载最新版本SDK以适配 Android9.0,谢谢!
展开

我的离在线语音合成也出现这个问题

0
#8用户已被禁言回复于2019-06
#4 sunny高傲小生回复
这个问题解决了吗?我也碰到了  Android9.0 

您好,28编译问题已修复,SDK已更新。请下载最新版本SDK以适配 Android9.0,谢谢!

0
#7用户已被禁言回复于2019-06
app的编译版本,target都是28!离在线混合sdk。

您好,28编译问题已修复,SDK已更新。请下载最新版本SDK以适配 Android9.0,谢谢!

0
#6用户已被禁言回复于2019-06

后台同学已经解决了,上线会有新的版本,目前在内部测试bug,近期内会更新以适配 android 9.0

0
#5用户已被禁言回复于2019-06
#4 sunny高傲小生回复
这个问题解决了吗?我也碰到了  Android9.0 

后台同学已经解决了,上线会有新的版本,目前在内部测试bug,近期内会更新以适配 android 9.0

0
#4sunny高傲小生回复于2019-06

这个问题解决了吗?我也碰到了  Android9.0 

0
#3用户已被禁言回复于2019-04
app的编译版本,target都是28!离在线混合sdk。

28 编译产物在android 9.0上运行的问题下一个版本解决。抱歉,请耐心等待。

0

app的编译版本,target都是28!离在线混合sdk。

0
TOP
切换版块