问题描述
Process: com.example.thesisbuyer,PID: 22196
java.lang.NoSuchFieldError: No static 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)
public void sendTwilioNotifJava(){
String ACCOUNT_ID = "My_ID";
String Twilio_Auth_Token = "My_Token";
Twilio.init(ACCOUNT_ID,Twilio_Auth_Token);
Message message = Message.creator(
new PhoneNumber("Receiver_Num"),new PhoneNumber("Twilio_Num"),"This is a sample message"
).create();
Log.d(TAG,"sendTwilioNotifJava: "+message.getSid());
}
此外,我尝试为此调用等效的kotlin函数,它也给我同样的错误消息。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)