Ionic 빌드 Android를 수행하는 동안 오류가 발생했습니다. (Error while doing Ionic build android)


문제 설명

Ionic 빌드 Android를 수행하는 동안 오류가 발생했습니다. (Error while doing Ionic build android)

나는 따라야 할 모든 튜토리얼을 따르고 설정을 올바르게 수행했습니다. 다음 오류가 발생합니다.

[Error: Failed to find 'ANDROID_HOME' environment variable. Try setting setting it manually.
Failed to find 'android' command in your 'PATH'. Try update your 'PATH' to include path to valid SDK directory.]

이제 문제에 대한 가능한 해결책은 $ANDROID_HOME 및 $PATH 변수에 Android SDK의 경로를 추가하는 것입니다.

출력은 다음과 같습니다.

echo $PATH

/home/samyak/anaconda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/ sbin:/bin:/usr/games:/usr/local/games:/usr/local/java/jdk1.8.0_65/bin:/usr/local/java/jdk1.8.0_65/jre/bin:/usr/ local/java/jdk1.8.0_65/bin:/usr/local/java/jdk1.8.0_65/jre/bin:/home/samyak/Android/Sdk/tools:/home/samyak/Android/Sdk/platform‑tools

6
echo $ANDROID_HOME

/home/samyak/Android/Sdk

Android를 하자마자 Android의 GUI를 얻습니다. 내가 뭔가를 놓치고 있다고 생각합니다. 누군가가 나를 도울 수 있다면

Version details
Ionic 1.7.11
Cordova 5.4.0
Android‑sdk 23

또한 Android Sdk를 다운로드하지 않고 하드 드라이브를 통해 친구로부터 가져왔다는 점에 유의해야 합니다. 내 안드로이드 빌드에 영향을 미치나요?


참조 솔루션

방법 1:

Make sure you have the Android Tools inside the path folder.After you have the Android SDK downloaded and installed, you need to install build tools for the version of android you're targeting. You will need to check:

  • Tools
  • Targeted Android API Version
  • Extras

and hit Install in the Android SDK Manager. If something is missing after this, install what build tool is complaining about.

(by Samyak JainPrashant G)

참조 문서

  1. Error while doing Ionic build android (CC BY‑SA 2.5/3.0/4.0)

#ionic #Android #cordova






관련 질문

Cordova - OS 업그레이드 후 iOS/Android 모두에서 앱 충돌 (Cordova - app crashes on both iOS/Android after an OS upgrade)

모바일용 HTML 5의 특정 영역에 링크가 있는 이미지 (Image with links in certain areas in HTML 5 for mobile)

Play 스토어에서 오류 발생 - "이 앱은 모든 기기와 호환되지 않습니다." (Getting error from play store - “This app is incompatible with all of your devices.”)

div의 오른쪽 하단에 이온 버튼 정렬 (Align an ionic button at the bottom right of a div)

새로운 Xcode 프로비저닝 정책 및 Ionic Framework (New Xcode provisioning policy and Ionic Framework)

각도 [$injector:unpr] 알 수 없는 공급자 오류를 해결하는 방법? (How to solve angular [$injector:unpr] Unknown provider error?)

ionic, 팝오버 범위에 범위 변수 전달 (ionic, pass scope variable to popover scope)

Angular: 2필드 데이터 바인딩 문제 (Angular: issue with two-field data binding)

ionic 2에서 ion-title의 글꼴 색상 변경 (Change font color of ion-title in ionic 2)

PhoneGap 빌드가 내 모든 파일을 업데이트하지 않습니다. (PhoneGap build is not updating all of my files)

Ionic 빌드 Android를 수행하는 동안 오류가 발생했습니다. (Error while doing Ionic build android)

$ionicHistory.backView() stateParams 변경 후 돌아가기 (Going back after changing stateParams of $ionicHistory.backView())







코멘트