Worklight 6.1-“所有版本"失败并给出java.lang.NullPointerException [英] Worklight 6.1 - "All Build" fails and gives java.lang.NullPointerException
本文介绍了Worklight 6.1-“所有版本"失败并给出java.lang.NullPointerException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Worklight 6.1 Studio.
Worklight 6.1 Studio.
创建了Android和iPhone平台.在执行所有构建"时,它失败并给出java.lang.NullPointerException
.
Created Android and iPhone Platform. While do "All Build" it fails and gives java.lang.NullPointerException
.
日志:
[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
推荐答案
尝试以下操作:
- 删除本机文件夹
- 关闭Eclipse
- 找到您的临时文件夹( OS X )
- 删除
wlBuildResources
文件夹 - 打开Eclipse
- 重建
- Delete the native folder
- Close Eclipse
- Locate your temp folder (Windows, OS X)
- Delete the
wlBuildResources
folder - Open Eclipse
- Re-build
如果您的native \文件夹中包含本机代码,则可以针对Android(以及类似地针对iOS)执行以下操作:
If you have native code in your native\ folder, you can do the following for Android (and similarly for iOS):
- 将android \ native \ res \ xml \ config.xml复制到android \ nativeResources \ res \ xml文件夹(如果该文件夹不存在,请创建它)
- 将android \ native \ src \ com \您的应用程序名称\ *.java文件复制到android \ nativeResources \ src \ com \您的应用程序名称文件夹(如果该文件夹不存在,请创建它)
- 将android \ native \ AndroidManifest.xml复制到android \ nativeResources文件夹
这样,您不必担心删除本机文件夹.在构建时,文件将被复制到其在本机文件夹中的位置.
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.
这篇关于Worklight 6.1-“所有版本"失败并给出java.lang.NullPointerException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文