2014-12-31 1 views
0

나는 내가 명령 줄에서이 작업을 시작 생각하는 경우 다음 나에게 내가 link명령 줄에서 phonegap/cordova의 오류는 무엇입니까? ...?

c:\users\worspace\hello\cordova platform add android 
    creating android project... 
    c"users\.cordova\lib\npm_cache\cordova-android\3.6.4\package\bin\node_modules\q\q.js:126 
          thro e; 
    Error: Faild to run "android".make sure you have the latest android SDK installed and that the "android" command <inside the tools/folder> is add to your PATH. 
     at C:\users\.cordova\lib\npm_cache\cordova-android\3.6.4package\bin\lib\check_reqs.js:43:27 
     at exithandler<chid_process.js:654:7> 
     at chidProcess.emt <events.js:95:17> 

답변

0

안드로이드가 시스템에 정의되어 있지 않기 때문에이 오류, 이것은 당신이해야 할 모든이와 함께 bash는 프로필 파일을 업데이트하는 것입니다 우분투 또는 Mac에 대한 귀하의 경로가 바로되지 않는다는 것을 의미 해당 경로. 내 생각 엔 PATH = $ {PATH} : Android/sdk/platform-tools : Android/sdk/tools이 맞지 않습니다.이 폴더의 절대 경로 여야합니다. 뭔가 같은 :

export PATH=/Users/your_user/adt-bundle-mac-x86_64-20130522/sdk/tools/:/Users/your_user/adt-bundle-mac-x86_64-20130522/sdk/platform-tools/:$PATH 
내가 바로 모든 일
+0

선생님 : \ 경우 ProgramData \ 오라클 \ 자바 \ javapath; C : \ 프로그램 파일 \ 자바 \ jdk1 C : \ Program Files \ Java \ jre1.8.0_25 \ bin, C : \ Program Files \ nodejs \, C : \ Users \ Owner \ Downloads \ Compressed \ adt-bundle-windows-x86-20140702 \ sdk \ tools, C : \ Users \ Owner \ Downloads \ Compressed \ adt-bundle-windows-x86-20140702 \ sdk \ platform-tools, C : \ apache-ant-1.9.4 \ bin, C : \ apache- ant-1.9.4 \ bin –

+0

명령 프롬프트에서 'android'명령을 테스트 해보십시오. 작동하지 않으면 경로에 문제가 있습니다. –

+0

위쪽 모두 경로에 필요하다고 설정되어 있습니다 ... you tube 링크 .. 내가 무엇을 할 수있는이보다 –

1

당신은 안드로이드 SDK를 설치하고 명령 줄에서 접근 할 필요가이 링크에서 배울이이 오류를 보여 .. 폰갭에 새로운 오전 Android를 플랫폼으로 추가하십시오. 당신이 그들을 설치하지 않은 경우

, 지침을 설치 여기 따르 : 이미있는 경우 https://developer.android.com/sdk/installing/index.html?pkg=tools

에서, android 명령을 포함하는 폴더는 PATH에 있는지 확인하십시오.

(Detailed instructions for adding to PATH)

+0

하지만 제대로 작동하지 .... 내 경로 ....이 C의 –