能够推送日志但在调用 WLClient.connect() 时失败

Was able to push logs but failed while calling WLClient.connect()

我正在开发 IBM MobileFirst 客户端 android 本机应用程序。

我有一个奇怪的问题,我正在编写以下代码来初始化 WLClient。

WLClient client = WLClient.createInstance(context); 
 client.connect(new WLResponseListener() {
            @Override
            public void onSuccess(WLResponse wlResponse) {
                Log.d("Success--- MFP_connect",wlResponse.getResponseText());

            }

            @Override
            public void onFailure(WLFailResponse wlFailResponse) {
Log.d("fail-- MFP_connect",wlFailResponse.getErrorMsg());
            }
        });

在我的 android 监视器中,我看到一条日志说

fail-- MFP_connect: The service is currently not available.

但是当我尝试将日志或分析推送到服务器时。他们正在成功到达服务器。

我正在连接到 http 企业服务器。

可能是什么问题。

@rocky 通过卸载应用程序并重新安装解决了他的问题。设备可能一直在缓存以前的响应。