-->

IBM Worklight 6.0 - Hybrid Android Application not

2019-06-14 06:43发布

问题:

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.