我使用的服务是:
调用的接口是:
参数设置情况:
开发平台和机型:
SDK版本号:
代码或日志截图(上传截图能帮助您更快解决问题):
/System.err: java.lang.IllegalArgumentException: &com.baidu.speech.Policy.uid() invoke failed
07-19 11:34:42.352 23612-8316/com.veclink.social W/System.err: at com.baidu.speech.Args.tryFillValue(Args.java:370)
07-19 11:34:42.352 23612-8316/com.veclink.social W/System.err: at com.baidu.speech.Args.parse(Args.java:388)
07-19 11:34:42.352 23612-8316/com.veclink.social W/System.err: at com.baidu.speech.Args.parse(Args.java:398)
07-19 11:34:42.352 23612-8316/com.veclink.social W/System.err: at com.baidu.speech.Args.(Args.java:304)
07-19 11:34:42.352 23612-8316/com.veclink.social W/System.err: at com.baidu.speech.Args.(Args.java:287)
07-19 11:34:42.352 23612-8316/com.veclink.social W/System.err: at com.baidu.speech.AbsSession.run(AbsSession.java:70)
07-19 11:34:42.352 23612-8316/com.veclink.social W/System.err: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
07-19 11:34:42.352 23612-8316/com.veclink.social W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
07-19 11:34:42.352 23612-8316/com.veclink.social W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
07-19 11:34:42.352 23612-8316/com.veclink.social W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
07-19 11:34:42.352 23612-8316/com.veclink.social W/System.err: at java.lang.Thread.run(Thread.java:818)
07-19 11:34:42.352 23612-8316/com.veclink.social W/System.err: Caused by: java.lang.reflect.InvocationTargetException
07-19 11:34:42.352 23612-8316/com.veclink.social W/System.err: at java.lang.reflect.Method.invoke(Native Method)
07-19 11:34:42.352 23612-8316/com.veclink.social W/System.err: at com.baidu.speech.Args.tryFillValue(Args.java:359)
07-19 11:34:42.352 23612-8316/com.veclink.social W/System.err: ... 10 more
07-19 11:34:42.352 23612-8316/com.veclink.social W/System.err: Caused by: java.lang.SecurityException: Permission Denial: requires permission android.permission.WRITE_SETTINGS
07-19 11:34:42.353 23612-8316/com.veclink.social W/System.err: at com.baidu.voicerecognition.android.DeviceId.checkPermission(DeviceId.java:89)
07-19 11:34:42.353 23612-8316/com.veclink.social W/System.err: at com.baidu.voicerecognition.android.DeviceId.getDeviceID(DeviceId.java:29)
07-19 11:34:42.353 23612-8316/com.veclink.social W/System.err: at com.baidu.voicerecognition.android.CommonParam.getDeviceId(CommonParam.java:26)
07-19 11:34:42.353 23612-8316/com.veclink.social W/System.err: at com.baidu.voicerecognition.android.CommonParam.getCUID(CommonParam.java:13)
07-19 11:34:42.353 23612-8316/com.veclink.social W/System.err: at com.baidu.voicerecognition.android.Device.getDeviceID(Device.java:33)
07-19 11:34:42.353 23612-8316/com.veclink.social W/System.err: at com.baidu.speech.Policy.uid(Policy.java:37)
07-19 11:34:42.353 23612-8316/com.veclink.social W/System.err: ... 12 more
复现步骤、现象及其他描述:
android6.0和6.0以上调用语音识别提示错误SpeechRecognizer.ERROR_CLIENT和SpeechRecognizer.ERROR_NO_MATCH。6.0以下系统没有问题。对android.permission.WRITE_SETTINGS授权也不行。
xi...3@163.com:
我使用的服务是:
调用的接口是:
参数设置情况:
开发平台和机型:
SDK版本号:
代码或日志截图(上传截图能帮助您更快解决问题):
/System.err: java.lang.IllegalArgumentException: &com.baidu.speech.Policy.uid() invoke failed
07-19 11:34:42.352 23612-8316/com.veclink.social W/System.err: at com.baidu.speech.Args.tryFillValue(Args.java:370)
07-19 11:34:42.352 23612-8316/com.veclink.social W/System.err: at com.baidu.speech.Args.parse(Args.java:388)
07-19 11:34:42.352 23612-8316/com.veclink.social W/System.err: at com.baidu.speech.Args.parse(Args.java:398)
07-19 11:34:42.352 23612-8316/com.veclink.social W/System.err: at com.baidu.speech.Args.(Args.java:304)
07-19 11:34:42.352 23612-8316/com.veclink.social W/System.err: at com.baidu.speech.Args.(Args.java:287)
07-19 11:34:42.352 23612-8316/com.veclink.social W/System.err: at com.baidu.speech.AbsSession.run(AbsSession.java:70)
07-19 11:34:42.352 23612-8316/com.veclink.social W/System.err: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
07-19 11:34:42.352 23612-8316/com.veclink.social W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
07-19 11:34:42.352 23612-8316/com.veclink.social W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
07-19 11:34:42.352 23612-8316/com.veclink.social W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
07-19 11:34:42.352 23612-8316/com.veclink.social W/System.err: at java.lang.Thread.run(Thread.java:818)
07-19 11:34:42.352 23612-8316/com.veclink.social W/System.err: Caused by: java.lang.reflect.InvocationTargetException
07-19 11:34:42.352 23612-8316/com.veclink.social W/System.err: at java.lang.reflect.Method.invoke(Native Method)
07-19 11:34:42.352 23612-8316/com.veclink.social W/System.err: at com.baidu.speech.Args.tryFillValue(Args.java:359)
07-19 11:34:42.352 23612-8316/com.veclink.social W/System.err: ... 10 more
07-19 11:34:42.352 23612-8316/com.veclink.social W/System.err: Caused by: java.lang.SecurityException: Permission Denial: requires permission android.permission.WRITE_SETTINGS
07-19 11:34:42.353 23612-8316/com.veclink.social W/System.err: at com.baidu.voicerecognition.android.DeviceId.checkPermission(DeviceId.java:89)
07-19 11:34:42.353 23612-8316/com.veclink.social W/System.err: at com.baidu.voicerecognition.android.DeviceId.getDeviceID(DeviceId.java:29)
07-19 11:34:42.353 23612-8316/com.veclink.social W/System.err: at com.baidu.voicerecognition.android.CommonParam.getDeviceId(CommonParam.java:26)
07-19 11:34:42.353 23612-8316/com.veclink.social W/System.err: at com.baidu.voicerecognition.android.CommonParam.getCUID(CommonParam.java:13)
07-19 11:34:42.353 23612-8316/com.veclink.social W/System.err: at com.baidu.voicerecognition.android.Device.getDeviceID(Device.java:33)
07-19 11:34:42.353 23612-8316/com.veclink.social W/System.err: at com.baidu.speech.Policy.uid(Policy.java:37)
07-19 11:34:42.353 23612-8316/com.veclink.social W/System.err: ... 12 more
复现步骤、现象及其他描述:
android6.0和6.0以上调用语音识别提示错误SpeechRecognizer.ERROR_CLIENT和SpeechRecognizer.ERROR_NO_MATCH。6.0以下系统没有问题。对android.permission.WRITE_SETTINGS授权也不行。
回复xi...3@163.com:请测试下我们官方的demo是否有问题,目前demo版本2.1