自然语言API 调试
szz0724822 发布于2018-08-07 11:30 浏览:84 回复:1
0
收藏
快速回复

我使用的服务是:自然语言NLP

调用的接口是:AipNip.lexer


参数设置情况:text="百度是一家科技公司"

开发平台和机型:android studio , android5.1


SDK版本号:android 5.1


代码或日志截图(上传截图能帮助您更快解决问题):

Caused by: java.lang.ClassNotFoundException: Didn't find class "sun.net.www.protocol.https.Handler" on path: DexPathList[[zip file "/system/framework/android.test.runner.jar", zip file "/data/app/com.baidu.speech.recognizerdemo-1/base.apk"],nativeLibraryDirectories=[/data/app/com.baidu.speech.recognizerdemo-1/lib/arm64, /vendor/lib64, /system/lib64]]
                                                                                     at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
                                                                                     at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
                                                                                     at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
                                                                                     at com.baidu.aip.http.AipHttpClient.post(AipHttpClient.java:86) 
                                                                                     at com.baidu.aip.auth.DevAuth.oauth(DevAuth.java:40) 
                                                                                     at com.baidu.aip.client.BaseClient.getAccessToken(BaseClient.java:153) 
                                                                                     at com.baidu.aip.client.BaseClient.preOperation(BaseClient.java:202) 
                                                                                     at com.baidu.aip.nlp.AipNlp.wordseg(AipNlp.java:45) 
                                                                                     at com.baidu.aip.nlp.AipNlp.wordseg(AipNlp.java:39) 
                                                                                     at com.baidu.android.voicedemo.Sample.TestNLP(Sample.java:195) 
                                                                                     at com.baidu.android.voicedemo.ApiActivity$syncTask.doInBackground(ApiActivity.java:531) 
                                                                                     at com.baidu.android.voicedemo.ApiActivity$syncTask.doInBackground(ApiActivity.java:508) 
                                                                                     at android.os.AsyncTask$2.call(AsyncTask.java:292) 
                                                                                     at java.util.concurrent.FutureTask.run(FutureTask.java:237) 
                                                                                     at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) 
                                                                                     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 
                                                                                     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 
                                                                                     at java.lang.Thread.run(Thread.java:818) 
                                                                                     Suppressed: java.lang.ClassNotFoundException: sun.net.www.protocol.https.Handler
                                                                                     at java.lang.Class.classForName(Native Method)
                                                                                     at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
                                                                                     at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
                                                                                     at java.lang.ClassLoader.loadClass(ClassLoader.java:504)

收藏
点赞
0
个赞
共1条回复 最后由fujiayi1984回复于2018-08-08 15:37
#2fujiayi1984回复于2018-08-08

请发到其它板块,这里是语音结束

0
TOP
切换版块