以下是我程序的出错:
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)
貌似是使用了已过时的方法的问题,不知有没有人能够解决以下谢谢!