2014-02-10 2 views
2

저는 Cordova를 처음 사용하고 있습니다. 나는 this tutorial을 따라 안드로이드 프로젝트를 만들었습니다. MAC에서 다음과 같은 오류가 있습니다.PhoneGap/Cordova : 오류 : "android"명령이 실패했습니다.

오류 : "android"명령이 실패했습니다. 최신 Android SDK가 설치되어 있고 도구 및 폴더 안의 "android"명령이 경로에 추가되었는지 확인하십시오.

나는 안드로이드 SDK 업데이트 또한 PATH를 편집 반복 ---

수출 PATH =는/usr/빈/빈 :는/usr/sbin에 : ​​경우/sbin :/usr/지방/빈/abhisheksmacbook/ADT-번들/SDK/플랫폼 도구 :/abhisheksmacbook/ADT-번들/SDK/도구/안드로이드

여전히 오류가 지속 .. :(:( 어떤 도움

Creating android project... 
Error: An error occured during creation of android sub-project. 

/Users/abhisheksmacbook/.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/abhisheksmacbook/.cordova/lib/android/cordova/3.3.0/bin/lib/check_reqs.js:85:29 
at _rejected (/Users/abhisheksmacbook/.cordova/lib/android/cordova/3.3.0/bin/node_modules/q/q.js:808:24) 
at /Users/abhisheksmacbook/.cordova/lib/android/cordova/3.3.0/bin/node_modules/q/q.js:834:30 
at Promise.when (/Users/abhisheksmacbook/.cordova/lib/android/cordova/3.3.0/bin/node_modules/q/q.js:1079:31) 
at Promise.promise.promiseDispatch (/Users/abhisheksmacbook/.cordova/lib/android/cordova/3.3.0/bin/node_modules/q/q.js:752:41) 
at /Users/abhisheksmacbook/.cordova/lib/android/cordova/3.3.0/bin/node_modules/q/q.js:574:44 
at flush (/Users/abhisheksmacbook/.cordova/lib/android/cordova/3.3.0/bin/node_modules/q/q.js:108:17) 
at process._tickCallback (node.js:415:13) 

at /usr/local/lib/node_modules/cordova/src/platform.js:282:30 
at ChildProcess.exithandler (child_process.js:641:7) 
at ChildProcess.EventEmitter.emit (events.js:98:17) 
at maybeClose (child_process.js:743:16) 
at Socket.<anonymous> (child_process.js:956:11) 
at Socket.EventEmitter.emit (events.js:95:17) 
at Pipe.close (net.js:466:12) 
+0

abhisheksmacbook/adt-bundle/sdk/tools/android에서 abhisheksmacbook/adt-bundle/sdk/tools /로 변경하고 –

+0

@DiveshSalian : DroidhSalian : 먼저 안드로이드를 사용하지 않고 다음으로 안드로이드로 시도합니다. . –

+0

시스템 변수 또는 사용자 변수에 경로가 추가되었습니다. ??? –

답변

0

? Mac의 경우 : PATH 변수 i를 편집 한 후 n ~/.bash_profile이면 source ~/.bash_profile을 실행하고 을 모두 닫으십시오. 터미널 창. 터미널을 다시 열고 안드로이드 플랫폼 제작/빌드가 잘 작동합니다.

관련 문제