2014-01-21 16 views
0

당신이 생각하는 바를 알고 있습니다. 아니요, 일반적인 오류는 아닙니다. 나는 Macbook에서 일하고있다, FYI. 나는 처음 코르도바/폰갭/이온/AngularJS와/MongoDB를/nodejs 함께 일하고 내가 새 프로젝트를 시작하고 나는이 오류 얻을 :Cordova 명령 줄에서 플랫폼을 추가 할 때 오류가 발생했습니다.

MacbookThrone:hello neema$ sudo cordova platform add android 
Creating android project... 

/usr/local/lib/node_modules/cordova/node_modules/q/q.js:126 
       throw e; 
        ^
Error: An error occured during creation of android sub-project. 

/Users/neema/.cordova/lib/android/cordova/3.3.0/bin/node_modules/q/q.js:126 
       throw e; 
        ^
Error: The command "android" failed. Make sure you have the latest Android SDK installed, and the "android" command (inside the tools/ folder) is added to your path. 
at /Users/neema/.cordova/lib/android/cordova/3.3.0/bin/lib/check_reqs.js:85:29 
at _rejected (/Users/neema/.cordova/lib/android/cordova/3.3.0/bin/node_modules/q/q.js:808:24) 

을하고 그냥 그렇게 계속적으로 간다.

MacbookThrone:hello neema$ phonegap build android 

을하지만, 그건 그냥이 오류를 던졌다 : 나는 하나 개의 솔루션이를 실행할 수 있습니다 읽어 보시기 바랍니다 정말 일을 할 생각이 없다

MacbookThrone:hello neema$ phonegap build android 
[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. 

/Users/neema/.cordova/lib/android/cordova/3.3.0/bin/node_modules/q/q.js:126 
       throw e; 
        ^
Error: The command "android" failed. Make sure you have the latest Android SDK installed, and the "android" command (inside the tools/ folder) is added to your path. 
at /Users/neema/.cordova/lib/android/cordova/3.3.0/bin/lib/check_reqs.js:85:29 
at _rejected (/Users/neema/.cordova/lib/android/cordova/3.3.0/bin/node_modules/q/q.js:808:24) 
at /Users/neema/.cordova/lib/android/cordova/3.3.0/bin/node_modules/q/q.js:834:30 
at Promise.when (/Users/neema/.cordova/lib/android/cordova/3.3.0/bin/node_modules/q/q.js:1079:31) 
at Promise.promise.promiseDispatch (/Users/neema/.cordova/lib/android/cordova/3.3.0/bin/node_modules/q/q.js:752:41) 
at /Users/neema/.cordova/lib/android/cordova/3.3.0/bin/node_modules/q/q.js:574:44 
at flush (/Users/neema/.cordova/lib/android/cordova/3.3.0/bin/node_modules/q/q.js:108:17) 
at process._tickCallback (node.js:415:13) 

합니다. 누구나 통찰력을 제공 할 수 있습니까? ...이 솔루션은 작동 할 수 < < < <

Getting error when adding Android to Phonegap project

Phonegap 3 doesn't work with Android Studio

편집을 나는이 솔루션을 발견했습니다하지만 난 그들과 함께 가야하는 방법을 알아낼 수 없습니다! 시도해보고 알려 드리겠습니다.>http://docs.phonegap.com/en/2.8.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android

답변

0

.bash_profile 파일에 올바른 경로를 추가하기 만하면됩니다. 처음 엔 혼란 스러웠지만 지금은 알게되었습니다.