获得;java.lang.VerifyError:com/mashape/relocation/conn/ssl/AbstractVerifier“;尝试在android上使用unirest时

获得;java.lang.VerifyError:com/mashape/relocation/conn/ssl/AbstractVerifier“;尝试在android上使用unirest时,java,android,ssl,unirest,Java,Android,Ssl,Unirest,我刚刚将unirest库添加到我的android项目中,我正在尝试使用mashapeapi。但我得到了这个错误。我认为这与https证书有关,但我不确定该怎么办 java.lang.VerifyError: com/mashape/relocation/conn/ssl/AbstractVerifier at com.mashape.relocation.conn.ssl.SSLConnectionSocketFactory.<clinit>(SSLC

我刚刚将unirest库添加到我的android项目中,我正在尝试使用mashapeapi。但我得到了这个错误。我认为这与https证书有关,但我不确定该怎么办

        java.lang.VerifyError: com/mashape/relocation/conn/ssl/AbstractVerifier
        at com.mashape.relocation.conn.ssl.SSLConnectionSocketFactory.<clinit>(SSLConnectionSocketFactory.java:124)
        at com.mashape.relocation.impl.conn.PoolingHttpClientConnectionManager.getDefaultRegistry(PoolingHttpClientConnectionManager.java:98)
        at com.mashape.relocation.impl.conn.PoolingHttpClientConnectionManager.<init>(PoolingHttpClientConnectionManager.java:105)
        at com.mashape.unirest.http.options.Options.refresh(Options.java:47)
        at com.mashape.unirest.http.options.Options.<clinit>(Options.java:34)
        at com.mashape.unirest.http.HttpClientHelper.prepareRequest(HttpClientHelper.java:153)
        at com.mashape.unirest.http.HttpClientHelper.request(HttpClientHelper.java:133)
        at com.mashape.unirest.request.BaseRequest.asJson(BaseRequest.java:68)
        at com.example.fionn.deathwatch.MainActivity.showDate(MainActivity.java:113)
        at com.example.fionn.deathwatch.MainActivity.onCreate(MainActivity.java:61)
        at android.app.Activity.performCreate(Activity.java:5312)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2181)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2276)
        at android.app.ActivityThread.access$800(ActivityThread.java:144)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1205)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:136)
        at android.app.ActivityThread.main(ActivityThread.java:5146)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:515)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
        at dalvik.system.NativeStart.main(Native Method)
java.lang.VerifyError:com/mashape/relocation/conn/ssl/AbstractVerifier
位于com.mashape.relocation.conn.ssl.SSLConnectionSocketFactory.(SSLConnectionSocketFactory.java:124)
位于com.mashape.remocation.impl.conn.PoolghtTPClientConnectionManager.getDefaultRegistry(PoolghtTPClientConnectionManager.java:98)
在com.mashape.relocation.impl.conn.PoolghttpClientConnectionManager上。(PoolghttpClientConnectionManager.java:105)
位于com.mashape.unirest.http.options.options.refresh(options.java:47)
位于com.mashape.unirest.http.options.options.(options.java:34)
http.HttpClientHelper.prepareRequest(HttpClientHelper.java:153)
http.HttpClientHelper.request(HttpClientHelper.java:133)
位于com.mashape.unirest.request.BaseRequest.asJson(BaseRequest.java:68)
位于com.example.fionn.deathwatch.MainActivity.showDate(MainActivity.java:113)
位于com.example.fionn.deathwatch.MainActivity.onCreate(MainActivity.java:61)
位于android.app.Activity.performCreate(Activity.java:5312)
位于android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
在android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2181)上
位于android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2276)
在android.app.ActivityThread.access$800(ActivityThread.java:144)
在android.app.ActivityThread$H.handleMessage(ActivityThread.java:1205)
位于android.os.Handler.dispatchMessage(Handler.java:102)
位于android.os.Looper.loop(Looper.java:136)
位于android.app.ActivityThread.main(ActivityThread.java:5146)
位于java.lang.reflect.Method.Invokenactive(本机方法)
位于java.lang.reflect.Method.invoke(Method.java:515)
在com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run上(ZygoteInit.java:796)
位于com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
在dalvik.system.NativeStart.main(本机方法)
我要运行的代码是

    HttpResponse<JsonNode> response = Unirest.post("https://life-left.p.mashape.com/time-left")
                .header("X-Mashape-Key", "1NZITOdDGqmshKRAEdDbX0tp0WV2p1RR5SSjsnQYQIVwrANkhC")
                .header("Content-Type", "application/x-www-form-urlencoded")
                .field("birth", "22 April 1977")
                .field("gender", "female")
                .asJson();
HttpResponse response=Unirest.post(“https://life-left.p.mashape.com/time-left")
.header(“X-Mashape-Key”、“1NZITOdDGqmshKRAEdDbX0tp0WV2p1RR5SSjsnQYQIVwrANkhC”)
.header(“内容类型”、“应用程序/x-www-form-urlencoded”)
.field(“出生”,“1977年4月22日”)
.field(“性别”、“女性”)
.asJson();