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

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

问题描述

我已经使用Android环境中的Dojo创建了一个Worklight应用程序。



我尝试在MBS中运行该应用程序,并且工作正常。但是当我在模拟器和真实设备中尝试使用该应用程序无法加载。



在显示的设备中:


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


在仿真器中显示:


无法加载UI


我还创建了iPhone环境,在模拟器和设备中都可以正常工作。



我已将所有Dojo库文件复制到我的项目的www文件夹中。


$ b $我也碰巧读过这篇文章 - IBM Worklight Hybrid Android应用程序无法在实际设备上运行,我已尝试提供的步骤,但仍无法加载。



模拟器中的错误图像:



< p > LogCat:

解决方案

我已经找到了解决方案。我已经将所有Dojo库文件夹添加到我的项目www文件夹中,使我的混合应用程序挂起。



我所做的是从Worklight应用程序www文件夹中删除了所有Dojo文件夹,并将只需要的dojo文件添加到我的项目www文件夹。



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



现在运行混合应用程序以查看所有缺少的图书馆资源。


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

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.

In the device it shows:

unfortunately the application has stopped

In the emulator is shows:

Failed to Load UI

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

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

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:

解决方案

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.

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.

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 Worklight 6.0 - 混合Android应用程序在模拟器和设备中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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