运行demo后退出。
Ta的回复 :WENGTIANLIANG: 我使用的服务是:百度离在线语音合成 调用的接口是:initialTts 参数设置情况:运行demo 开发平台和机型:努比亚Z11 SDK版本号:19 代码或日志截图(上传截图能帮助您更快解决问题): 04-13 11:17:45.931 18867-18867/com.baidu.tts.sample I/art: Late-enabling -Xcheck:jni 04-13 11:17:45.956 18867-18879/com.baidu.tts.sample D/SmartContainerConfig: Configured features : 04-13 11:17:46.023 18867-18867/com.baidu.tts.sample W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=kryo --instruction-set-features=default --dex-file=/data/app/com.baidu.tts.sample-1/split_lib_dependencies_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.baidu.tts.sample-1@split_lib_dependencies_apk.apk@classes.dex) because non-0 exit status 04-13 11:17:46.088 18867-18867/com.baidu.tts.sample W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=kryo --instruction-set-features=default --dex-file=/data/app/com.baidu.tts.sample-1/split_lib_slice_0_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.baidu.tts.sample-1@split_lib_slice_0_apk.apk@classes.dex) because non-0 exit status 04-13 11:17:46.127 18867-18867/com.baidu.tts.sample W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=kryo --instruction-set-features=default --dex-file=/data/app/com.baidu.tts.sample-1/split_lib_slice_1_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.baidu.tts.sample-1@split_lib_slice_1_apk.apk@classes.dex) because non-0 exit status 04-13 11:17:46.166 18867-18867/com.baidu.tts.sample W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=kryo --instruction-set-features=default --dex-file=/data/app/com.baidu.tts.sample-1/split_lib_slice_2_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.baidu.tts.sample-1@split_lib_slice_2_apk.apk@classes.dex) because non-0 exit status 04-13 11:17:46.203 18867-18867/com.baidu.tts.sample W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=kryo --instruction-set-features=default --dex-file=/data/app/com.baidu.tts.sample-1/split_lib_slice_3_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.baidu.tts.sample-1@split_lib_slice_3_apk.apk@classes.dex) because non-0 exit status 04-13 11:17:46.248 18867-18867/com.baidu.tts.sample W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=kryo --instruction-set-features=default --dex-file=/data/app/com.baidu.tts.sample-1/split_lib_slice_4_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.baidu.tts.sample-1@split_lib_slice_4_apk.apk@classes.dex) because non-0 exit status 04-13 11:17:46.283 18867-18867/com.baidu.tts.sample W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=kryo --instruction-set-features=default --dex-file=/data/app/com.baidu.tts.sample-1/split_lib_slice_5_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.baidu.tts.sample-1@split_lib_slice_5_apk.apk@classes.dex) because non-0 exit status 04-13 11:17:46.320 18867-18867/com.baidu.tts.sample W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=kryo --instruction-set-features=default --dex-file=/data/app/com.baidu.tts.sample-1/split_lib_slice_6_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.baidu.tts.sample-1@split_lib_slice_6_apk.apk@classes.dex) because non-0 exit status 04-13 11:17:46.358 18867-18867/com.baidu.tts.sample W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=kryo --instruction-set-features=default --dex-file=/data/app/com.baidu.tts.sample-1/split_lib_slice_7_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.baidu.tts.sample-1@split_lib_slice_7_apk.apk@classes.dex) because non-0 exit status 04-13 11:17:46.403 18867-18867/com.baidu.tts.sample W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=kryo --instruction-set-features=default --dex-file=/data/app/com.baidu.tts.sample-1/split_lib_slice_8_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.baidu.tts.sample-1@split_lib_slice_8_apk.apk@classes.dex) because non-0 exit status 04-13 11:17:46.441 18867-18867/com.baidu.tts.sample W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=kryo --instruction-set-features=default --dex-file=/data/app/com.baidu.tts.sample-1/split_lib_slice_9_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.baidu.tts.sample-1@split_lib_slice_9_apk.apk@classes.dex) because non-0 exit status 04-13 11:17:46.442 18867-18867/com.baidu.tts.sample W/System: ClassLoader referenced unknown path: /data/app/com.baidu.tts.sample-1/lib/arm64 04-13 11:17:46.447 18867-18867/com.baidu.tts.sample I/InstantRun: starting instant run server: is main process 04-13 11:17:46.448 18867-18867/com.baidu.tts.sample V/InstantRun: Starting server socket listening for package com.baidu.tts.sample on android.net.LocalSocketAddress@80d9fde 04-13 11:17:46.448 18867-18867/com.baidu.tts.sample V/InstantRun: Started server for package com.baidu.tts.sample 04-13 11:17:46.451 18867-18867/com.baidu.tts.sample I/nubialog: finished message:{ delay=487ms dispatching=-487ms sending=-496ms what=110 obj=android.app.ActivityThread$AppBindData target=android.app.ActivityThread$H } 04-13 11:17:46.594 18867-18961/com.baidu.tts.sample E/art: No implementation found for int com.baidu.tts.jni.EmbeddedSynthesizerEngine.bdTTSVerifyLicense(android.content.Context, java.lang.String, java.lang.String, java.lang.String, byte[]) (tried Java_com_baidu_tts_jni_EmbeddedSynthesizerEngine_bdTTSVerifyLicense and Java_com_baidu_tts_jni_EmbeddedSynthesizerEngine_bdTTSVerifyLicense__Landroid_content_Context_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2_3B) 04-13 11:17:46.606 18867-18960/com.baidu.tts.sample I/DpmTcmClient: RegisterTcmMonitor from: org.apache.http.impl.conn.TcmIdleTimerMonitor 04-13 11:17:46.615 18867-18960/com.baidu.tts.sample W/AsyncHttpRH: Current thread has not called Looper.prepare(). Forcing synchronous mode. 04-13 11:17:48.122 18867-18960/com.baidu.tts.sample V/AsyncHttpRH: Request retry no. 1 04-13 11:17:49.624 18867-18960/com.baidu.tts.sample V/AsyncHttpRH: Request retry no. 2 04-13 11:17:51.128 18867-18960/com.baidu.tts.sample V/AsyncHttpRH: Request retry no. 3 04-13 11:17:52.619 18867-19228/com.baidu.tts.sample E/art: No implementation found for int com.baidu.tts.jni.EmbeddedSynthesizerEngine.bdTTSVerifyLicense(android.content.Context, java.lang.String, java.lang.String, java.lang.String, byte[]) (tried Java_com_baidu_tts_jni_EmbeddedSynthesizerEngine_bdTTSVerifyLicense and Java_com_baidu_tts_jni_EmbeddedSynthesizerEngine_bdTTSVerifyLicense__Landroid_content_Context_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2_3B) 04-13 11:17:52.629 18867-18960/com.baidu.tts.sample V/AsyncHttpRH: Request retry no. 4 04-13 11:17:52.636 18867-18867/com.baidu.tts.sample E/art: No implementation found for int com.baidu.tts.jni.EmbeddedSynthesizerEngine.loadEnglishEngine(byte[], byte[], long) (tried Java_com_baidu_tts_jni_EmbeddedSynthesizerEngine_loadEnglishEngine and Java_com_baidu_tts_jni_EmbeddedSynthesizerEngine_loadEnglishEngine___3B_3BJ) 04-13 11:17:52.636 18867-18867/com.baidu.tts.sample D/AndroidRuntime: Shutting down VM 04-13 11:17:52.637 18867-18867/com.baidu.tts.sample E/AndroidRuntime: FATAL EXCEPTION: main Process: com.baidu.tts.sample, PID: 18867 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.baidu.tts.sample/com.baidu.tts.sample.MainActivity}: java.lang.reflect.UndeclaredThrowableException at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2502) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2562) at android.app.ActivityThread.access$900(ActivityThread.java:165) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1400) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:171) at android.app.ActivityThread.main(ActivityThread.java:5610) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:732) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622) Caused by: java.lang.reflect.UndeclaredThrowableException at $Proxy0.loadEnglishModel(Unknown Source) at com.baidu.tts.a.b.a.c(SpeechSynthesizerAdapter.java:199) at com.baidu.tts.client.SpeechSynthesizer.loadEnglishModel(SpeechSynthesizer.java:330) at com.baidu.tts.sample.MainActivity.initialTts(MainActivity.java:208) at com.baidu.tts.sample.MainActivity.onCreate(MainActivity.java:76) at android.app.Activity.performCreate(Activity.java:6301) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1121) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2455) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2562) at android.app.ActivityThread.access$900(ActivityThread.java:165) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1400) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:171) at android.app.ActivityThread.main(ActivityThread.java:5610) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:732) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622) Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at com.baidu.tts.aop.AInterceptorHandler.invoke(AInterceptorHandler.java:75) at java.lang.reflect.Proxy.invoke(Proxy.java:393) at $Proxy0.loadEnglishModel(Unknown Source) at com.baidu.tts.a.b.a.c(SpeechSynthesizerAdapter.java:199) at com.baidu.tts.client.SpeechSynthesizer.loadEnglishModel(SpeechSynthesizer.java:330) at com.baidu.tts.sample.MainActivity.initialTts(MainActivity.java:208) at com.baidu.tts.sample.MainActivity.onCreate(MainActivity.java:76) at android.app.Activity.performCreate(Activity.java:6301) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1121) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2455) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2562) at android.app.ActivityThread.access$900(ActivityThread.java:165) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1400) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:171) at android.app.ActivityThread.main(ActivityThread.java:5610) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:732) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622) Caused by: java.lang.UnsatisfiedLinkError: No implementation found for int com.baidu.tts.jni.EmbeddedSynthesizerEngine.loadEnglishEngine(byte[], byte[], long) (tried Java_com_baidu_tts_jni_EmbeddedSynthesizerEngine_loadEnglishEngine and Java_com_baidu_tts_jni_EmbeddedSynthesizerEngine_loadEnglishEngine___3B_3BJ) at com.baidu.tts.jni.EmbeddedSynthesizerEngine.loadEnglishEngine(Native Method) at com.baidu.tts.b.a.b.e.a(OfflineSynthesizer.java:180) at com.baidu.tts.b.a.b.d.a(MixSynthesizer.java:268) at com.baidu.tts.b.a.a.c.b(EngineExecutor.java:175) at com.baidu.tts.b.a.a.b.a(AEngineState.java:167) at com.baidu.tts.b.a.a.a.a(AEngineExecutor.java:169) at com.baidu.tts.a.c.b.a(TtsAdapter.java:327) at com.baidu.tts.a.c.c.a(Ttser.java:76) at com.baidu.tts.o.a.c.a(Tts.java:320) at com.baidu.tts.o.a.b.loadEnglishModel(InitializedState.java:123) at com.baidu.tts.o.a.c.loadEnglishModel(Tts.java:152) at java.lang.reflect.Method.invoke(Native Method) at com.baidu.tts.aop.AInterceptorHandler.invoke(AInterceptorHandler.java:75) at java.lang.reflect.Proxy.invoke(Proxy.java:393) at $Proxy0.loadEnglishModel(Unknown Source) at com.baidu.tts.a.b.a.c(SpeechSynthesizerAdapter.java:199) at com.baidu.tts.client.SpeechSynthesizer.loadEnglishModel(SpeechSynthesizer.java:330) at com.baidu.tts.sample.MainActivity.initialTts(MainActivity.java:208) at com.baidu.tts.sample.MainActivity.onCreate(MainActivity.java:76) at android.app.Activity.performCreate(Activity.java:6301) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1121) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2455) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2562) at android.app.ActivityThread.access$900(ActivityThread.java:165) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1400) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:171) at android.app.ActivityThread.main(ActivityThread.java:5610) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:732) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622) 04-13 11:17:54.136 18867-18960/com.baidu.tts.sample V/AsyncHttpRH: Request retry no. 5 04-13 11:17:54.137 18867-18960/com.baidu.tts.sample W/System.err: java.net.UnknownHostException: Unable to resolve host "openapi.baidu.com": No address associated with hostname 04-13 11:17:54.137 18867-18960/com.baidu.tts.sample W/System.err: at java.net.InetAddress.lookupHostByName(InetAddress.java:440) 04-13 11:17:54.137 18867-18960/com.baidu.tts.sample W/System.err: at java.net.InetAddress.getAllByNameImpl(InetAddress.java:252) 04-13 11:17:54.137 18867-18960/com.baidu.tts.sample W/System.err: at java.net.InetAddress.getAllByName(InetAddress.java:215) 04-13 11:17:54.137 18867-18960/com.baidu.tts.sample W/System.err: at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:142) 04-13 11:17:54.137 18867-18960/com.baidu.tts.sample W/System.err: at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:169) 04-13 11:17:54.137 18867-18960/com.baidu.tts.sample W/System.err: at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:124) 04-13 11:17:54.137 18867-18960/com.baidu.tts.sample W/System.err: at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:370) 04-13 11:17:54.137 18867-18960/com.baidu.tts.sample W/System.err: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:560) 04-13 11:17:54.137 18867-18960/com.baidu.tts.sample W/System.err: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:492) 04-13 11:17:54.137 18867-18960/com.baidu.tts.sample W/System.err: at com.baidu.tts.loopj.AsyncHttpRequest.makeRequest(AsyncHttpRequest.java:146) 04-13 11:17:54.137 18867-18960/com.baidu.tts.sample W/System.err: at com.baidu.tts.loopj.AsyncHttpRequest.makeRequestWithRetries(AsyncHttpRequest.java:177) 04-13 11:17:54.137 18867-18960/com.baidu.tts.sample W/System.err: at com.baidu.tts.loopj.AsyncHttpRequest.run(AsyncHttpRequest.java:107) 04-13 11:17:54.137 18867-18960/com.baidu.tts.sample W/System.err: at com.baidu.tts.loopj.SyncHttpClient.sendRequest(SyncHttpClient.java:93) 04-13 11:17:54.137 18867-18960/com.baidu.tts.sample W/System.err: at com.baidu.tts.loopj.AsyncHttpClient.post(AsyncHttpClient.java:1043) 04-13 11:17:54.138 18867-18960/com.baidu.tts.sample W/System.err: at com.baidu.tts.auth.c.d(OnlineAuth.java:133) 04-13 11:17:54.138 18867-18960/com.baidu.tts.sample W/System.err: at com.baidu.tts.auth.c.call(OnlineAuth.java:32) 04-13 11:17:54.138 18867-18960/com.baidu.tts.sample W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237) 04-13 11:17:54.138 18867-18960/com.baidu.tts.sample W/System.err: at com.baidu.tts.k.c.a(Memorizer.java:51) 04-13 11:17:54.138 18867-18960/com.baidu.tts.sample W/System.err: at com.baidu.tts.auth.a$b.a(AuthClient.java:125) 04-13 11:17:54.138 18867-18960/com.baidu.tts.sample W/System.err: at com.baidu.tts.auth.a$b.call(AuthClient.java:97) 04-13 11:17:54.138 18867-18960/com.baidu.tts.sample W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237) 04-13 11:17:54.138 18867-18960/com.baidu.tts.sample W/System.err: at java.lang.Thread.run(Thread.java:818) 04-13 11:19:13.260 18867-18867/? I/Process: Sending signal. PID: 18867 SIG: 9 复现步骤、现象及其他描述: 运行demo,直接闪退,log如上。 回复WENGTIANLIANG: 您好,有问题请继续联系