IBM Worklight 6.0 - Hybrid Android Application not working in Emulator and Device

假装没事ソ 提交于 2019-12-08 10:46:52

问题


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:


回答1:


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.



来源:https://stackoverflow.com/questions/18480254/ibm-worklight-6-0-hybrid-android-application-not-working-in-emulator-and-devic

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!