关于自然语言处理中NLP客户端似乎使用了已过时方法的问题
静谧之流 发布于2017-03 浏览:3542 回复:2
0
收藏

以下是我程序的出错:

Process: terraproject.mobilevoiceapp, PID: 3524
                                                                           java.lang.NoSuchFieldError: No field INSTANCE of type Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier; in class Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier; or its superclasses (declaration of 'org.apache.http.conn.ssl.AllowAllHostnameVerifier' appears in /system/framework/framework.jar:classes2.dex)
                                                                               at org.apache.http.conn.ssl.SSLConnectionSocketFactory.(SSLConnectionSocketFactory.java:144)
                                                                               at org.apache.http.impl.client.HttpClientBuilder.build(HttpClientBuilder.java:958)
                                                                               at com.baidu.aip.http.AipHttpClient.(AipHttpClient.java:120)
                                                                               at com.baidu.aip.http.AipHttpClient.post(AipHttpClient.java:147)
                                                                               at com.baidu.aip.auth.DevAuth.oauth(DevAuth.java:39)
                                                                               at com.baidu.aip.client.BaseClient.getAccessToken(BaseClient.java:154)
                                                                               at com.baidu.aip.client.BaseClient.preOperation(BaseClient.java:214)
                                                                               at com.baidu.aip.nlp.AipNlp.commentTag(AipNlp.java:157)


貌似是使用了已过时的方法的问题,不知有没有人能够解决以下谢谢!

收藏
点赞
0
个赞
共2条回复 最后由周俊316回复于2017-05
#3周俊316回复于2017-05
#2 静谧之流回复
使用的是[图片]自然语言处理java版本的这个SDK android sdk版本 24
展开

您好,能否提供下您的APP ID 便于我们追查原因,以及技术在跟踪这个问题,有结论我答复您。您也可以添加我们的QQ群进行交流,632426386。


0
#2静谧之流回复于2017-03

使用的是自然语言处理java版本的这个SDK android sdk版本 24

0
TOP
切换版块