IBM工作灯6.0 - 混合Android应用程序在模拟器和设备不工作 [英] IBM Worklight 6.0 - Hybrid Android Application not working in Emulator and Device

查看:155
本文介绍了IBM工作灯6.0 - 混合Android应用程序在模拟器和设备不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经用Dojo和Android的环境中工作灯的应用程序。

I have created a Worklight application using Dojo with the Android environment.

我试图运行在MBS该应用程序,并能正常工作。但是,当我试图在模拟器和真实设备,应用程序加载失败。

I tried running that application in the MBS, and it works fine. But when I tried that in emulator and real device, the application fails to load.

在设备,它表明:

不幸的是,应用程序已停止

unfortunately the application has stopped

在仿真器显示:

无法加载UI

我也创建iPhone环境中,它工作在两个模拟器和设备的罚款。

I have also created iPhone environment, there it works fine in both simulator and device.

我已经在我的项目的www文件夹复制所有Dojo库文件。

I have copied all the Dojo library files in my project's www folder.

我也正好看到这篇文章 - <一个href=\"http://stackoverflow.com/questions/16783293/ibm-worklight-hybrid-android-application-cant-run-on-real-device\">IBM工作灯混合Android应用程序不能真实设备跑,我曾尝试提供的步骤,但它仍然无法加载。

I also happened to read this Post - IBM Worklight Hybrid Android application can't run on real device, I have tried the steps provided but it still fails to load.

在模拟器错误图片:结果

Error Images in Emulator:

LogCat中:结果

LogCat:

推荐答案

我已经找到了我Solution.Initially添加了所有Dojo库文件夹到我的项目www文件夹,使我的混合应用程序挂起。

I have found out the Solution.Initially i have added all Dojo library folder to my project www folder that makes my hybrid application hangs.

我所做的是我从我的工作灯应用www文件夹中删除所有文件夹道场和只添加所需的道场文件到我的项目www文件夹。

What i did is i have removed all the Dojo folder from my Worklight application www folder and added only the required dojo files to my project www folder.

您可以通过打开控制台视图检查丢失的库文件(窗口>显示视图>其他...>控制台)。从控制台视图,单击打开控制台按钮,然后从列表中选择Dojo库的要求。从Dojo库请求控制台中,单击视图菜单(在工具栏中的三角形),并取消提供图书馆资源。

You can check the missing library files by opening the Console view (Window > Show View > Other... > Console). From the Console view, click the Open Console button and choose Dojo Library Requests from the list. From the Dojo Library Requests console, click the View Menu (the triangle in the toolbar), and uncheck Provide Library Resources.

现在来看,你混合应用程序来查看所有丢失的图书馆资源。

Now Run you hybrid application to see all your missing Library Resources.

这篇关于IBM工作灯6.0 - 混合Android应用程序在模拟器和设备不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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