以下是我程序的出错:
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)
貌似是使用了已过时的方法的问题,不知有没有人能够解决以下谢谢!
您好,能否提供下您的APP ID 便于我们追查原因,以及技术在跟踪这个问题,有结论我答复您。您也可以添加我们的QQ群进行交流,632426386。
使用的是自然语言处理java版本的这个SDK android sdk版本 24