我正在尝试在Ubuntu上解决PhoneGap / Cordova的问题。在网上搜索了两天后,我尝试了一切我能想象到的东西。 - 将node.js更新为上一版本 - 别名nodejs到节点 - 更新路径 - 安装了很多其他东西
[phonegap] detecting Android SDK environment...
[phonegap] using the local environment
[phonegap] adding the Android platform...
[error] An error occured during creation of android sub-project.
/home/user/.cordova/lib/android/cordova/3.3.0/bin/node_modules/q/q.js:126
throw e;
^
Error: An error occurred while listing Android targets
at /home/user/.cordova/lib/android/cordova/3.3.0/bin/lib/check_reqs.js:87:29
at _rejected
(/home/user/.cordova/lib/android/cordova/3.3.0/bin/node_modules/q/q.js:808:24)
at /home/user/.cordova/lib/android/cordova/3.3.0/bin/node_modules/q/q.js:834:30
at Promise.when
(/home/user/.cordova/lib/android/cordova/3.3.0/bin/node_modules/q/q.js:1079:31)
at Promise.promise.promiseDispatch
(/home/user/.cordova/lib/android/cordova/3.3.0/bin/node_modules/q/q.js:752:41)
at /home/user/.cordova/lib/android/cordova/3.3.0/bin/node_modules/q/q.js:574:44
at flush
(/home/user/.cordova/lib/android/cordova/3.3.0/bin/node_modules/q/q.js:108:17)
at process._tickCallback (node.js:415:13)