无法在测试Android设备的应用 [英] unable to test application in android device

查看:279
本文介绍了无法在测试Android设备的应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发使用IBM MobileFirst者平台的移动应用程序。

I am developing an mobile application using IBM MobileFirst Plaform.

当我在浏览器,手机模拟器和Android模拟器应用程序工作正常,测试应用程序。当我在部署Android设备的APK文件并运行应用程序没有运行。当我检查了logcat的我有以下错误。

When I test the app in the browser, Mobile simulator and android emulator the application is working fine. When I deploy the apk file in my android device and run the application is not running. when I checked the logcat I have the following error.

I / Web控制台(20334):而processMessage失败:消息:F09
  WLAuthorizationManagerPlugin1268447688
  {wlFailureStatus:UNRESPONSIVE_HOST,状态:500,responseText的:,状态文本:其
  服务是当前不可用。}在
  文件:///android_asset/www/default/worklight/cordova.js:1063

I/Web Console(20334): processMessage failed: Message: F09 WLAuthorizationManagerPlugin1268447688 {"wlFailureStatus":"UNRESPONSIVE_HOST","status":500,"responseText":"","statusText":"The service is currently not available."} at file:///android_asset/www/default/worklight/cordova.js:1063

我的两个笔记本电脑和手机都连接到同一个wifi网络

Both my laptop and Mobile are connected to same wifi network

推荐答案

帕拉日食月神4.4.0和6.3工作灯

Para eclipse luna 4.4.0 and WORKLIGHT 6.3

 function wlCommonInit() {

 //set url de conexion para Android

 var environment = WL.Client.getEnvironment();

 if (environment == WL.Environment.ANDROID) {

 WL.App.setServerUrl("https://<SERVER>:          <PORT>/<contextPATH>",setServerURLSuccess, setServerURLFailure);

   }

........

........

};

和创建两个方法

function setServerURLSuccess() {
  // Display the newly set server URL.
  //alert(getServerURL());
}

function setServerURLFailure() {
WL.SimpleDialog.show(
    "Change Server URL", "Failed setting Server URL", 
    [{
        text: "Close", handler: function() {}
    }]
 )
}

Saludos!

Saludos!!!

这篇关于无法在测试Android设备的应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆