问题
I have created a simple HelloWorld application with the Android environment. When I run it in my android device (ICS version) i get this error message:
Unfortunately, HelloWorkLight has stopped
When I run it in the Android emulator (version 2.2), I get this error:
Sorry! The application HelloWorkLight (process com.HelloWorkLight) has stopped unexpectedly. Please try again. Force Close.
I have no idea what to do with this error.
回答1:
You are probably using ADT v22.
To resolve this issue:
- Right-click on the native Android project in Worklight Studio and choose 'Properties'.
- Select 'Java Build Path' and go to the 'Order and Export' tab.
- Mark the check-box for 'Android Private Libraries'
- Refresh/clean/rebuild the android project.
You will need to do the above per-project.
This is fixed internally for a future Worklight release.
来源:https://stackoverflow.com/questions/17129623/ibm-worklight-unfortunately-helloworklight-has-stopped-error-message