我正在尝试使用Netbeans / Cardova构建一个示例HTML5应用程序。
Cardova:3.4.0-0.1.0 Netbeans:7.4
再现:
设备:Cordova Android设备
按Build
窗口“创建Cordova资源并将网站根目录重命名为'www'?” 用“确定”回答
输出:
ant -f D:\\phonegap\\CordovaMapsSample\\nbproject -Dandroid.target.device.arg=run -Denv.DISPLAY=:0.0 "-Dupdate.task.jar=C:\\Program Files (x86)\\NetBeans 7.4\\webcommon\\ant\\extra\\org-netbeans-modules-cordova-projectupdate.jar" -Dandroid.sdk.home=D:\\androidsdk -Dandroid.build.target=android-19 -Dstart.file=index.html -Dandroid.project.activity=CordovaMapsSample -Dconfig=android_1 "-Dios.certificate.name=iPhone Developer" -Dsite.root=www_nb_temp "-Dcordova.version=3.4.0-0.1.0
" sim-android
check-android-template:
check-cordova-version:
check-cordova-project:
upgrade-to-cordova-project:
cordova.cmd -d create . com.coolappz.CordovaMapsSample CordovaMapsSample
Path already exists and is not empty: D:\phonegap\CordovaMapsSample
Creating a new cordova project with name "CordovaMapsSample" and id "com.coolappz.CordovaMapsSample" at location "D:\phonegap\CordovaMapsSample"
D:\phonegap\CordovaMapsSample\nbproject\build.xml:78: exec returned: 1
BUILD FAILED (total time: 0 seconds)
就是这样:/ 请帮帮我!
答案 0 :(得分:0)
尝试使用NetBeans 8.0 RC1,如果我没记错的话,最新的Cordova中的项目结构有一些变化,NetBeans 7.4可能无法使用它。
要下载8.0 RC1,请访问this page