KonyRestClient executeConnection中的IOException被拒绝

时间:2017-09-29 02:42:42

标签: android kony

我初始化了KonyClient,如下所示

public void initializeKonyClient(Context mContext){
    Context context = mContext;

    KonyClient myClient = new KonyClient();
    myClient.acceptSelfSignedCertificates();

    try {
        myClient.initAsync(mContext,appkey,appsecret,serviceURL,
        new InitCallback() {
            @Override
            public void onSuccess(JSONObject response) {
                Log.e("InitCallback","Success");
            }
            @Override
            public void onFailure(KonyException error) {
                Log.e("InitCallback", "Failed");
            }
        });
    }
    catch (KonyException exception) {

    }
}

之后我拨打一个API。以前它的工作正常,但我一直有错误The IOException in KonyRestClient executeConnection to URL refused。我的互联网没问题。无论如何要解决这个问题以及它为什么一直在展示?谢谢。

0 个答案:

没有答案