Worklight 6.1 - “All Build” fails and gives java.l

2019-09-19 08:28发布

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 

1条回答
三岁会撩人
2楼-- · 2019-09-19 08:59

Try the following:

  1. Delete the native folder
  2. Close Eclipse
  3. Locate your temp folder (Windows, OS X)
  4. Delete the wlBuildResources folder
  5. Open Eclipse
  6. Re-build

If you have native code in your native\ folder, you can do the following for Android (and similarly for iOS):

  1. copy android\native\res\xml\config.xml to android\nativeResources\res\xml folder (if the folder doesn't exist, create it)
  2. 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)
  3. 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.

查看更多
登录 后发表回答