Ionic으로 안드로이드 빌드를 시도 할 때 큰 문제가 있습니다. 나는 그것이Ionic : android 빌드 실패
내가 스택 오버 플로우 및 이온 포럼 주위에 약간의 사냥을했다[Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions.]
에 실패, 처음에 보통 ionic build android
시도하고,이 jar 파일을 많이 설치하기 시작한 '솔루션'으로 자바와 안드로이드 스튜디오를 설치 이 문제가 발생했습니다 :
Download https://repo1.maven.org/maven2/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar
Download https://repo1.maven.org/maven2/commons-codec/commons-codec/1.4/commons-codec-1.4.jar
Download https://repo1.maven.org/maven2/com/android/tools/external/lombok/lombok-ast/0.2.3/lombok-ast-0.2.3.jar
Download https://repo1.maven.org/maven2/org/abego/treelayout/org.abego.treelayout.core/1.0.1/org.abego.treelayout.core-1.0.1.jar
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> failed to find target with hash string 'android-23' in: /Users/.../Library/Android/sdk
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 51.558 secs
Error: /users/nick/documents/.../.../platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> failed to find target with hash string 'android-23' in: /Users/.../Library/Android/sdk
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Please install Android target: "android-23".
Hint: Open the SDK manager by running: /Users/.../Library/Android/sdk/tools/android
You will require:
1. "SDK Platform" for android-23
2. "Android SDK Platform-tools (latest)
3. "Android SDK Build-tools" (latest)
어떤 조언이 있습니까? Android Studio 또는 다른 것을 제거해야합니까? 나는 당신이 말할 수있는 것처럼 이것에 아주 나쁘다. 그러나 이것은 내가 작업하고있는 프로젝트를 크게 막고 있기 때문에 누군가가 도울 수 있다면 놀랄 것입니다! Installing the Android Development Environment
구성에서
사용중인 Windows 또는 Mac 또는 리눅스? –
@ ahlem-jarrar Mac, 죄송합니다. – o1n3n21