使用SDK 2.0.1.20 & 臨時授權文件時,出現以下錯誤。
請問有人有遇過同樣的問題?
request failed: https://openapi.baidu.com/oauth/2.0/token?grant_type=client_credentials&client_id=null&client_secret=null
W/System.err: java.io.FileNotFoundException: https://openapi.baidu.com/oauth/2.0/token?grant_type=client_credentials&client_id=null&client_secret=null
W/System.err: at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:238)
W/System.err: at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getInputStream(DelegatingHttpsURLConnection.java:210)
W/System.err: at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:25)
W/System.err: at com.baidu.speech.EventManagerDec.requestHttpGet(EventManagerDec.java:391)
W/System.err: at com.baidu.speech.EventManagerDec.send(EventManagerDec.java:140)
W/System.err: at com.baidu.speech.EventManagerDec.send(EventManagerDec.java:101)
W/System.err: at com.baidu.speech.EventManagerDecProxy.send(EventManagerDecProxy.java:121)
W/System.err: at com.baidu.speech.EventManagerMessagePool$1.run(EventManagerMessagePool.java:46)
W/System.err: at android.os.Handler.handleCallback(Handler.java:743)
W/System.err: at android.os.Handler.dispatchMessage(Handler.java:95)
W/System.err: at android.os.Looper.loop(Looper.java:150)
W/System.err: at android.os.HandlerThread.run(HandlerThread.java:61)
多谢反馈
已解決,需定義在androidmainfest.xml 定義
1.APP_ID
2.API_KEY
3.SECRET_KEY