Java – Apache Cordova in NetBeans 7.4
•
Java
I just downloaded NetBeans 7.4 and I'm trying to explore Apache Cordova
This is the log
ant -f /Users/jason/NetBeansProjects/HTML5Application/nbproject "-Dupdate.task.jar=/Applications/NetBeans/NetBeans 7.4.app/Contents/Resources/NetBeans/webcommon/ant/extra/org-netbeans-modules-cordova-projectupdate.jar" "-dios.provisioning.profile=/Users/jason/Library/MobileDevice/Provisioning Profiles/6B14AF63-D435-47F0-AF54-F24E2066EEBA.mobileprovision" -Dandroid.project.activity=HTML5Application "-dios.certificate.name=iPhone Developer" -Denv.DISPLAY=:0.0 -Dsite.root=www_nb_temp "-Dcordova.version=3.1.0-0.2.0 "upgrade-to-cordova-project check-cordova-project: check-cordova-version: upgrade-to-cordova-project: cordova -d create . com.coolappz.HTML5Application HTML5Application Error: Path already exists and is not empty: /Users/jason/NetBeansProjects/HTML5ApplicationCreating a new cordova project with name "HTML5Application" and id "com.coolappz.HTML5Application" at location "/Users/jason/NetBeansProjects/HTML5Application" at CLI.create (/usr/local/lib/node_modules/cordova/src/create.js:63:25) at new CLI (/usr/local/lib/node_modules/cordova/src/cli.js:105:30) at Object.<anonymous> (/usr/local/lib/node_modules/cordova/bin/cordova:41:16) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:901:3 /Users/jason/NetBeansProjects/HTML5Application/nbproject/build.xml:78: exec returned: 1 BUILD Failed (total time: 1 second)
I have installed node JS (version v0.10.20) and Apache Cordova (3.1.0-0.2.0)
What is the solution? Is this a mistake?
Solution
In fact, the problem I encountered was not a NetBeans bug, it was version 3.1 0-0.2. Apache Cordova error for 0 (latest version until now)
The solution is from version 3.1 0-0.2. 0 downgraded to 3.1 0-0.1. 0, everything will work normally:
sudo npm uninstall -g cordova sudo npm install -g cordova@3.1.0-0.1.0
Thank @ geertjan & @ cocorico for your help
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码