Große Probleme beim Versuch, mit Ionic android zu bauen. Ich versuchte zunächst die normalen ionic build android
, es mitIonic: Fehler beim Erstellen von Android
[Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions.]
ich um Stack-Überlauf einig Jagd gemacht und ionische Foren und installierte Java und Android Studio als ‚Lösung‘, begann es viele .jar-Dateien zu installieren, und das ist passiert:
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)
Irgendwelche Beratung? Vielleicht muss ich Android Studio oder etwas anderes deinstallieren? Ich bin sehr schlecht darin, wie Sie wahrscheinlich sagen können. Aber das hält das Projekt, an dem ich gerade arbeite, enorm zurück, also wird es unglaublich sein, wenn jemand helfen könnte!
mit Windows oder Mac oder Linux? –
@ ahlem-jarrar Mac, sorry – o1n3n21