我想开始使用Phonegap开发项目,所以我按照他们网站上的说明进行操作:http://phonegap.com/install/
但是当我执行"phonegap run android"时,出现了一个错误,我不知道如何解决。这是我的控制台输出:
C:\Users\Christian>phonegap create my-app
[phonegap] missing library phonegap/www/3.3.0
[phonegap] downloading https://github.com/phonegap/phonegap-app-hello-world/arch
ive/3.3.0.tar.gz...
[phonegap] created project at C:\Users\Christian\my-app
C:\Users\Christian>cd my-app
C:\Users\Christian\my-app>phonegap run android
[phonegap] detecting Android SDK environment...
[phonegap] using the local environment
[phonegap] adding the Android platform...
[phonegap] missing library cordova/android/3.3.0
[phonegap] downloading https://git-wip-us.apache.org/repos/asf?p=cordova-android
.git;a=snapshot;h=3.3.0;sf=tgz...
[error] An error occured during creation of android sub-project.
C:\Users\Christian\.cordova\lib\android\cordova\3.3.0\bin\node_modules\q\q.js:12
6
throw e;
^
Error: An error occurred while listing Android targets
at C:\Users\Christian\.cordova\lib\android\cordova\3.3.0\bin\lib\check_reqs.
js:87:29
at _rejected (C:\Users\Christian\.cordova\lib\android\cordova\3.3.0\bin\node
_modules\q\q.js:808:24)
at C:\Users\Christian\.cordova\lib\android\cordova\3.3.0\bin\node_modules\q\
q.js:834:30
at Promise.when (C:\Users\Christian\.cordova\lib\android\cordova\3.3.0\bin\n
ode_modules\q\q.js:1079:31)
at Promise.promise.promiseDispatch (C:\Users\Christian\.cordova\lib\android\
cordova\3.3.0\bin\node_modules\q\q.js:752:41)
at C:\Users\Christian\.cordova\lib\android\cordova\3.3.0\bin\node_modules\q\
q.js:574:44
at flush (C:\Users\Christian\.cordova\lib\android\cordova\3.3.0\bin\node_mod
ules\q\q.js:108:17)
at process._tickCallback (node.js:415:13)
C:\Users\Christian\my-app>