问题
I have created a simple application using the bundled Dojo v1.9 and upon running it device or emulator, I am getting the following error:
07-08 05:38:17.429: E/Web Console(530): Error: scriptError at file:///data/data/com.WorklightApp/files/www/default/dojo/dojo.js:21
These are the steps that I took:
- Create a Worklight project and application (with Dojo)
- Add a simple dojo tag on the main page
- Add the Android environment
- Build All and Deploy
- Run on device and/or emulator
The dojo components will not appear; instead I get the above mentioned error.
The application does however work correctly when previewed in Worklight Console.
Is there anything that I must do in Worklight v6.0 to make it work?
回答1:
See if any of the following answers to questions about the same issue help you out:
- IBM Worklight 6.0 - Unable to run sample hybrid worklight app using dojo toolkit for android environment on avd?
- Worklight core-web-layer.js errors
来源:https://stackoverflow.com/questions/17603370/ibm-worklight-6-0-scripterror-in-dojo-js21