为什么一开启识别就显示没有匹配的结果,权限什么都开了,在线识别,急急急急!!!!!
186*****857 发布于2016-10 浏览:2597 回复:2
0
收藏

10-31 09:16:23.14532618/com.example.administrator.newdemoyy W/System: ClassLoader referenced unknown path: /data/app/com.example.administrator.newdemoyy-2/lib/arm64

10-31 09:16:23.19832618/com.example.administrator.newdemoyy E/OpenGLRenderer: PerfServiceNative_notifyRenderTime init fail!

10-31 09:16:23.23832650/com.example.administrator.newdemoyy E/GED: Failed to get GED Log Buf, err(0)

10-31 09:16:23.25732650/com.example.administrator.newdemoyy W/libEGL: [ANDROID_RECORDABLE] format: 1

10-31 09:16:25.18432618/com.example.administrator.newdemoyy E/OpenGLRenderer: PerfServiceNative_notifyRenderTime init fail!

10-31 09:16:25.23732650/com.example.administrator.newdemoyy W/libEGL: [ANDROID_RECORDABLE] format: 1

10-31 09:16:25.37232625/com.example.administrator.newdemoyy W/art: Suspending all threads took: 9.510ms

10-31 09:16:25.37232625/ java.lang.IllegalArgumentException: &com.baidu.speech.Policy.uid() invoke failed

10-31 09:16:25.37232625/     at com.baidu.speech.Args.tryFillValue(Args.java:370)

10-31 09:16:25.38532710/     at com.baidu.speech.Args.parse(Args.java:388)

10-31 09:16:25.38532710/     at com.baidu.speech.Args.parse(Args.java:398)

10-31 09:16:25.38532710/     at com.baidu.speech.Args.(Args.java:304)

10-31 09:16:25.38532710/     at com.baidu.speech.Args.(Args.java:287)

10-31 09:16:25.38532710/     at com.baidu.speech.AbsSession.run(AbsSession.java:70)

10-31 09:16:25.38532710/     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)

10-31 09:16:25.38532710/     at java.util.concurrent.FutureTask.run(FutureTask.java:237)

10-31 09:16:25.38532710/     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)

10-31 09:16:25.38532710/     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)

10-31 09:16:25.38532710/     at java.lang.Thread.run(Thread.java:818)

10-31 09:16:25.38532710/ Caused by: java.lang.reflect.InvocationTargetException

10-31 09:16:25.38532710/     at java.lang.reflect.Method.invoke(Native Method)

10-31 09:16:25.38632710/     at com.baidu.speech.Args.tryFillValue(Args.java:359)




10-31 09:16:25.38632710/ ... 10 more

10-31 09:16:25.38632710/ Caused by: java.lang.SecurityException: Permission Denial: requires permission android.permission.WRITE_SETTINGS

10-31 09:16:25.38632710/     at com.baidu.voicerecognition.android.DeviceId.checkPermission(DeviceId.java:89)

10-31 09:16:25.38632710/     at com.baidu.voicerecognition.android.DeviceId.getDeviceID(DeviceId.java:29)

10-31 09:16:25.38632710/     at com.baidu.voicerecognition.android.CommonParam.getDeviceId(CommonParam.java:26)

10-31 09:16:25.38632710/     at com.baidu.voicerecognition.android.CommonParam.getCUID(CommonParam.java:13)

10-31 09:16:25.38632710/     at com.baidu.voicerecognition.android.Device.getDeviceID(Device.java:33)

10-31 09:16:25.38632710/     at com.baidu.speech.Policy.uid(Policy.java:37)

10-31 09:16:25.38632710/ ... 12 more

10-31 09:16:26.80032710/ java.lang.IllegalArgumentException: &com.baidu.speech.Policy.uid() invoke failed

10-31 09:16:26.80032710/     at com.baidu.speech.Args.tryFillValue(Args.java:370)

10-31 09:16:26.80032710/     at com.baidu.speech.Args.parse(Args.java:388)

10-31 09:16:26.80132710/     at com.baidu.speech.Args.parse(Args.java:398)

10-31 09:16:26.80132710/     at com.baidu.speech.Args.(Args.java:304)

10-31 09:16:26.80132710/     at com.baidu.speech.Args.(Args.java:287)

10-31 09:16:26.80132710/     at com.baidu.speech.AbsSession.run(AbsSession.java:70)

10-31 09:16:26.80132710/     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)

10-31 09:16:26.80132710/     at java.util.concurrent.FutureTask.run(FutureTask.java:237)

10-31 09:16:26.80132710/     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)

10-31 09:16:26.80132710/     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)

10-31 09:16:26.80132710/     at java.lang.Thread.run(Thread.java:818)

10-31 09:16:26.80132710/ Caused by: java.lang.reflect.InvocationTargetException

10-31 09:16:26.80132710/     at java.lang.reflect.Method.invoke(Native Method)

10-31 09:16:26.80132710/     at com.baidu.speech.Args.tryFillValue(Args.java:359)




10-31 09:16:26.80132710/ ... 10 more

10-31 09:16:26.80132710/ Caused by: java.lang.SecurityException: Permission Denial: requires permission android.permission.WRITE_SETTINGS

10-31 09:16:26.80132710/     at com.baidu.voicerecognition.android.DeviceId.checkPermission(DeviceId.java:89)

10-31 09:16:26.80132710/     at com.baidu.voicerecognition.android.DeviceId.getDeviceID(DeviceId.java:29)

10-31 09:16:26.80132710/     at com.baidu.voicerecognition.android.CommonParam.getDeviceId(CommonParam.java:26)

10-31 09:16:26.80132710/     at com.baidu.voicerecognition.android.CommonParam.getCUID(CommonParam.java:13)

10-31 09:16:26.80132710/     at com.baidu.voicerecognition.android.Device.getDeviceID(Device.java:33)

10-31 09:16:26.80132710/     at com.baidu.speech.Policy.uid(Policy.java:37)

10-31 09:16:26.80132710/ ... 12 more

10-31 09:16:27.29532710/ java.lang.IllegalArgumentException: &com.baidu.speech.Policy.uid() invoke failed

10-31 09:16:27.29532710/     at com.baidu.speech.Args.tryFillValue(Args.java:370)

10-31 09:16:27.29532710/     at com.baidu.speech.Args.parse(Args.java:388)

10-31 09:16:27.29532710/     at com.baidu.speech.Args.parse(Args.java:398)

10-31 09:16:27.29532710/     at com.baidu.speech.Args.(Args.java:304)

10-31 09:16:27.29532710/     at com.baidu.speech.Args.(Args.java:287)

10-31 09:16:27.29532710/     at com.baidu.speech.AbsSession.run(AbsSession.java:70)

10-31 09:16:27.29532710/     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)

10-31 09:16:27.29532710/     at java.util.concurrent.FutureTask.run(FutureTask.java:237)

10-31 09:16:27.29532710/     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)

10-31 09:16:27.29532710/     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)

10-31 09:16:27.29532710/     at java.lang.Thread.run(Thread.java:818)

10-31 09:16:27.29532710/ Caused by: java.lang.reflect.InvocationTargetException

10-31 09:16:27.29532710/     at java.lang.reflect.Method.invoke(Native Method)

10-31 09:16:27.29532710/     at com.baidu.speech.Args.tryFillValue(Args.java:359)




10-31 09:16:27.29532710/ ... 10 more

10-31 09:16:27.29532710/ Caused by: java.lang.SecurityException: Permission Denial: requires permission android.permission.WRITE_SETTINGS

10-31 09:16:27.29532710/     at com.baidu.voicerecognition.android.DeviceId.checkPermission(DeviceId.java:89)

10-31 09:16:27.29532710/     at com.baidu.voicerecognition.android.DeviceId.getDeviceID(DeviceId.java:29)

10-31 09:16:27.29532710/     at com.baidu.voicerecognition.android.CommonParam.getDeviceId(CommonParam.java:26)

10-31 09:16:27.29532710/     at com.baidu.voicerecognition.android.CommonParam.getCUID(CommonParam.java:13)

10-31 09:16:27.29532710/     at com.baidu.voicerecognition.android.Device.getDeviceID(Device.java:33)

10-31 09:16:27.29532710/     at com.baidu.speech.Policy.uid(Policy.java:37)

10-31 09:16:27.29532710/ ... 12 more

10-31 09:16:27.65932710/ java.lang.IllegalArgumentException: &com.baidu.speech.Policy.uid() invoke failed

10-31 09:16:27.65932710/     at com.baidu.speech.Args.tryFillValue(Args.java:370)

10-31 09:16:27.65932710/     at com.baidu.speech.Args.parse(Args.java:388)

10-31 09:16:27.65932710/     at com.baidu.speech.Args.parse(Args.java:398)

10-31 09:16:27.65932710/     at com.baidu.speech.Args.(Args.java:304)

10-31 09:16:27.65932710/     at com.baidu.speech.Args.(Args.java:287)

10-31 09:16:27.65932710/     at com.baidu.speech.AbsSession.run(AbsSession.java:70)

10-31 09:16:27.65932710/     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)

10-31 09:16:27.65932710/     at java.util.concurrent.FutureTask.run(FutureTask.java:237)

10-31 09:16:27.65932710/     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)

10-31 09:16:27.65932710/     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)

10-31 09:16:27.65932710/     at java.lang.Thread.run(Thread.java:818)

10-31 09:16:27.65932710/ Caused by: java.lang.reflect.InvocationTargetException

10-31 09:16:27.65932710/     at java.lang.reflect.Method.invoke(Native Method)

10-31 09:16:27.65932710/     at com.baidu.speech.Args.tryFillValue(Args.java:359)




10-31 09:16:27.65932710/ ... 10 more

10-31 09:16:27.65932710/ Caused by: java.lang.SecurityException: Permission Denial: requires permission android.permission.WRITE_SETTINGS

10-31 09:16:27.65932710/     at com.baidu.voicerecognition.android.DeviceId.checkPermission(DeviceId.java:89)

10-31 09:16:27.65932710/     at com.baidu.voicerecognition.android.DeviceId.getDeviceID(DeviceId.java:29)

10-31 09:16:27.65932710/     at com.baidu.voicerecognition.android.CommonParam.getDeviceId(CommonParam.java:26)

10-31 09:16:27.65932710/     at com.baidu.voicerecognition.android.CommonParam.getCUID(CommonParam.java:13)

10-31 09:16:27.65932710/     at com.baidu.voicerecognition.android.Device.getDeviceID(Device.java:33)

10-31 09:16:27.65932710/     at com.baidu.speech.Policy.uid(Policy.java:37)

10-31 09:16:27.65932710/ ... 12 more

10-31 09:16:27.92432710/ java.lang.IllegalArgumentException: &com.baidu.speech.Policy.uid() invoke failed

10-31 09:16:27.92432710/     at com.baidu.speech.Args.tryFillValue(Args.java:370)

10-31 09:16:27.92432710/     at com.baidu.speech.Args.parse(Args.java:388)

10-31 09:16:27.92432710/     at com.baidu.speech.Args.parse(Args.java:398)

10-31 09:16:27.92432710/     at com.baidu.speech.Args.(Args.java:304)

10-31 09:16:27.92432710/     at com.baidu.speech.Args.(Args.java:287)

10-31 09:16:27.92432710/     at com.baidu.speech.AbsSession.run(AbsSession.java:70)

10-31 09:16:27.92432710/     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)

10-31 09:16:27.92432710/     at java.util.concurrent.FutureTask.run(FutureTask.java:237)

10-31 09:16:27.92432710/     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)

10-31 09:16:27.92432710/     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)

10-31 09:16:27.92432710/     at java.lang.Thread.run(Thread.java:818)

10-31 09:16:27.92432710/ Caused by: java.lang.reflect.InvocationTargetException

10-31 09:16:27.92432710/     at java.lang.reflect.Method.invoke(Native Method)

10-31 09:16:27.92432710/     at com.baidu.speech.Args.tryFillValue(Args.java:359)

10-31 09:16:27.92432710/ ... 10 more



10-31 09:16:27.92432710/ Caused by: java.lang.SecurityException: Permission Denial: requires permission android.permission.WRITE_SETTINGS

10-31 09:16:27.92432710/     at com.baidu.voicerecognition.android.DeviceId.checkPermission(DeviceId.java:89)

10-31 09:16:27.92432710/     at com.baidu.voicerecognition.android.DeviceId.getDeviceID(DeviceId.java:29)

10-31 09:16:27.92432710/     at com.baidu.voicerecognition.android.CommonParam.getDeviceId(CommonParam.java:26)

10-31 09:16:27.92432710/     at com.baidu.voicerecognition.android.CommonParam.getCUID(CommonParam.java:13)

10-31 09:16:27.92432710/     at com.baidu.voicerecognition.android.Device.getDeviceID(Device.java:33)

10-31 09:16:27.92432710/     at com.baidu.speech.Policy.uid(Policy.java:37)

10-31 09:16:27.92432710/ ... 12 more

10-31 09:16:28.15532710/ java.lang.IllegalArgumentException: &com.baidu.speech.Policy.uid() invoke failed

10-31 09:16:28.15532710/     at com.baidu.speech.Args.tryFillValue(Args.java:370)

10-31 09:16:28.15532710/     at com.baidu.speech.Args.parse(Args.java:388)

10-31 09:16:28.15532710/     at com.baidu.speech.Args.parse(Args.java:398)

10-31 09:16:28.15532710/     at com.baidu.speech.Args.(Args.java:304)

10-31 09:16:28.15532710/     at com.baidu.speech.Args.(Args.java:287)

10-31 09:16:28.15532710/     at com.baidu.speech.AbsSession.run(AbsSession.java:70)

10-31 09:16:28.15532710/     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)

10-31 09:16:28.15532710/     at java.util.concurrent.FutureTask.run(FutureTask.java:237)

10-31 09:16:28.15632710/     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)

10-31 09:16:28.15632710/     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)

10-31 09:16:28.15632710/     at java.lang.Thread.run(Thread.java:818)

10-31 09:16:28.15632710/ Caused by: java.lang.reflect.InvocationTargetException

10-31 09:16:28.15632710/     at java.lang.reflect.Method.invoke(Native Method)

10-31 09:16:28.15632710/     at com.baidu.speech.Args.tryFillValue(Args.java:359)

10-31 09:16:28.15632710/ ... 10 more

10-31 09:16:28.15632710/ Caused by: java.lang.SecurityException: Permission Denial: requires permission android.permission.WRITE_SETTINGS

10-31 09:16:28.15632710/     at com.baidu.voicerecognition.android.DeviceId.checkPermission(DeviceId.java:89)

10-31 09:16:28.15632710/     at com.baidu.voicerecognition.android.DeviceId.getDeviceID(DeviceId.java:29)

10-31 09:16:28.15632710/     at com.baidu.voicerecognition.android.CommonParam.getDeviceId(CommonParam.java:26)

10-31 09:16:28.15632710/     at com.baidu.voicerecognition.android.CommonParam.getCUID(CommonParam.java:13)

10-31 09:16:28.15632710/     at com.baidu.voicerecognition.android.Device.getDeviceID(Device.java:33)

10-31 09:16:28.15632710/     at com.baidu.speech.Policy.uid(Policy.java:37)

10-31 09:16:28.15632710/ ... 12 more

10-31 09:16:28.35732710/ java.lang.IllegalArgumentException: &com.baidu.speech.Policy.uid() invoke failed

10-31 09:16:28.35732710/     at com.baidu.speech.Args.tryFillValue(Args.java:370)

10-31 09:16:28.35732710/     at com.baidu.speech.Args.parse(Args.java:388)

10-31 09:16:28.35732710/     at com.baidu.speech.Args.parse(Args.java:398)

10-31 09:16:28.35732710/     at com.baidu.speech.Args.(Args.java:304)

10-31 09:16:28.35732710/     at com.baidu.speech.Args.(Args.java:287)

10-31 09:16:28.35732710/     at com.baidu.speech.AbsSession.run(AbsSession.java:70)

10-31 09:16:28.35732710/     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)

10-31 09:16:28.35732710/     at java.util.concurrent.FutureTask.run(FutureTask.java:237)

10-31 09:16:28.35732710/     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)

10-31 09:16:28.35732710/     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)

10-31 09:16:28.35732710/     at java.lang.Thread.run(Thread.java:818)

10-31 09:16:28.35732710/ Caused by: java.lang.reflect.InvocationTargetException

10-31 09:16:28.35732710/     at java.lang.reflect.Method.invoke(Native Method)

10-31 09:16:28.35732710/     at com.baidu.speech.Args.tryFillValue(Args.java:359)

10-31 09:16:28.35732710/ ... 10 more

10-31 09:16:28.35732710/ Caused by: java.lang.SecurityException: Permission Denial: requires permission android.permission.WRITE_SETTINGS

10-31 09:16:28.35732710/     at com.baidu.voicerecognition.android.DeviceId.checkPermission(DeviceId.java:89)

10-31 09:16:28.35732710/     at com.baidu.voicerecognition.android.DeviceId.getDeviceID(DeviceId.java:29)

10-31 09:16:28.35732710/     at com.baidu.voicerecognition.android.CommonParam.getDeviceId(CommonParam.java:26)

10-31 09:16:28.35732710/     at com.baidu.voicerecognition.android.CommonParam.getCUID(CommonParam.java:13)

10-31 09:16:28.35832710/     at com.baidu.voicerecognition.android.Device.getDeviceID(Device.java:33)

10-31 09:16:28.35832710/     at com.baidu.speech.Policy.uid(Policy.java:37)

10-31 09:16:28.35832710/ ... 12 more


收藏
点赞
0
个赞
共2条回复 最后由用户已被禁言回复于2022-04
#3c5812回复于2016-11

您好,这个错误是因为旧版SDK对6.0适配造成的,解决办法如下:

方法1:将targetSdkVersion设置为小于23的值

方法2:下载最新版本的sdk,可以参考github的demo https://github.com/baidu/speech-samples/tree/master/sdk/android/eclipse/asr%26wakeup

0
#2186*****857回复于2016-10


回复186*****857:

这是项目结构,

0
TOP
切换版块