IBM Worklight:Android应用程序 - 无法连接到该服务

时间:2014-06-26 10:21:41

标签: android cordova ibm-mobilefirst

所以,我正在使用Worklight开发Android应用程序。我也在使用wamp服务器和cordova媒体进行应用。当我在设备中运行应用程序时,我在logcat中收到以下错误:

     06-26 16:56:39.008: E/libEGL(5184): call to OpenGL ES API with no current context (logged once per thread)
     06-26 16:56:52.081: E/NONE(5184): Client init failed. Connection to the service is not available.

根据这篇文章,IBM Worklight - "Client init failed. Connection to the service is not available." 我试图从平板电脑打开控制台,它可以连接。它也使用相同的wifi。

应用程序可以运行,但某些功能在应用程序中不起作用,并且未加载数据库。 我已经在清单中添加了使用cordova媒体的权限,并且还指定了目标Sdk。有谁知道或经历过这个?

更新:

这是完整的警告日志:

     06-28 13:15:40.658: W/com.worklight.androidgap.analytics.WLAnalytics(16503): TLF_configurator.enable was called, but the required Tealeaf libraries are not present in the classpath.
     06-28 13:15:43.140: W/PluginManager(16503): THREAD WARNING: exec() call to Utils.writePref blocked the main thread for 33ms. Plugin should use CordovaInterface.getThreadPool().
     06-28 13:15:43.170: W/PluginManager(16503): THREAD WARNING: exec() call to Utils.writePref blocked the main thread for 26ms. Plugin should use CordovaInterface.getThreadPool().
     06-28 13:15:43.711: W/PluginManager(16503): THREAD WARNING: exec() call to Utils.loadSkin blocked the main thread for 535ms. Plugin should use CordovaInterface.getThreadPool().
     06-28 13:15:47.675: W/PluginManager(16503): THREAD WARNING: exec() call to NativeBusyIndicator.show blocked the main thread for 85ms. Plugin should use CordovaInterface.getThreadPool().
     06-28 13:15:48.065: W/NONE(16503): Your application is using the WL.OptionsMenu API. Note that, if your application targets Android 3.0 (API level 11) or higher, WL.OptionsMenu might have no effect, depending on the device.
     06-28 13:15:48.215: W/PluginManager(16503): THREAD WARNING: exec() call to Utils.writePref blocked the main thread for 32ms. Plugin should use CordovaInterface.getThreadPool().
     06-28 13:15:48.876: W/PluginManager(16503): THREAD WARNING: exec() call to Utils.writePref blocked the main thread for 57ms. Plugin should use CordovaInterface.getThreadPool().
     06-28 13:15:49.096: W/PluginManager(16503): THREAD WARNING: exec() call to NetworkDetector.log blocked the main thread for 21ms. Plugin should use CordovaInterface.getThreadPool().
     06-28 13:15:49.376: W/PluginManager(16503): THREAD WARNING: exec() call to Media.startPlayingAudio blocked the main thread for 60ms. Plugin should use CordovaInterface.getThreadPool().

1 个答案:

答案 0 :(得分:0)

我已经在运行Android 4.4的Nexus 5中测试了该应用,客户端init在我的案例中取得了成功。有各种各样的错误,但不是你提到的错误。

我建议尝试:

  • 从设备中删除应用并重新安装
  • 删除原生文件夹,重新构建并重新安装