无法运行" PhoneGap的运行Android和QUOT ;,抛出异常 [英] Can't run "phonegap run android", throws Exception

查看:170
本文介绍了无法运行" PhoneGap的运行Android和QUOT ;,抛出异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要开始开发与东西PhoneGap的,我跟着他们的网站上的说明: http://phonegap.com/安装/

I wanted to start developing stuff with Phonegap and i followed the instructions on their website: http://phonegap.com/install/

当我执行PhoneGap的运行Android的它给了我一个错误我无法找到如何解决。这里是我的控制台输出:

When i am executing "phonegap run android" it gives me an error i could not find out how to fix. Here is my console output:

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:\\用户\\基督教\\我的应用>

C:\Users\Christian\my-app>

推荐答案

您可能没有Android的SDK。查看<一个href=\"http://docs.phonegap.com/en/2.3.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android\" rel=\"nofollow\">http://docs.phonegap.com/en/2.3.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android在得到该如何安装

You probably do not have the android SDK. Check out http://docs.phonegap.com/en/2.3.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android on how to get that installed.

这篇关于无法运行&QUOT; PhoneGap的运行Android和QUOT ;,抛出异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆