Worklight 6.1 Studio.
Created Android and iPhone Platform. While do "All Build" it fails and gives java.lang.NullPointerException
.
Log:
[2014-03-13 21:08:27] Starting build process: application 'MobileApp', all environments<br>
[2014-03-13 21:08:33] Application build failed: java.lang.NullPointerException
Try the following:
- Delete the native folder
- Close Eclipse
- Locate your temp folder (Windows, OS X)
- Delete the
wlBuildResources
folder
- Open Eclipse
- Re-build
If you have native code in your native\ folder, you can do the following for Android (and similarly for iOS):
- copy android\native\res\xml\config.xml to android\nativeResources\res\xml folder (if the folder doesn't exist, create it)
- copy android\native\src\com\your-app-name\*.java files to android\nativeResources\src\com\your-app-name folder (if the folder doesn't exist, create it)
- copy android\native\AndroidManifest.xml to android\nativeResources folder
This way you do not need to fear removing the native folder; upon build time the files will be copied to their location in the native folder.