IBM Worklight - Unable to load index.html in a Dojo app

前端 未结 1 810
忘了有多久
忘了有多久 2021-01-28 16:32

I have created sample Wokrlight Project with Dojo library (default template project).

The Android version of app runs fine in the Android Emulator showing the content of

相关标签:
1条回答
  • 2021-01-28 17:01

    Your step #4 is not needed and incorrect:

    • You should choose "Android Studio Project" only if you actually have Android Studio installed in your computer and if you actually intended on using it. Otherwise it will fail:

      Failed Running Android Studio: Specify location of Android Studio in Window->Preferences->Worklight

    • Choosing it anyway, is not what generates the Android project; After adding the Android environment to your application, the Android project is being auto-generated for you by Worklight Studio.

    I have followed your steps in Worklight 6.1.0 and tested in both AVD and device, and could not reproduce.

    Try the following steps and tell me the result:

    1. In Eclipse, press ctrl+3 (or cmd+3 if in Mac) and add the Dojo Library Requests view
    2. Press the "play"-like button to disable it (it is enabled by default)
    3. Re-build and deploy
    4. Re-run and test in the device
    5. Familiarize yourself with Dojo in Worklight: Working with the Dojo Library Project that serves Dojo resources
    0 讨论(0)
提交回复
热议问题