brew cask install android-sdk
Ich bin mit problem zum installieren von android sdk (brew cask install android-idk
) auf Mac OS X.
Ich habe versucht es zu installieren für nativescript. Ich lese über Menschen, die das gleiche problem hatte, aber ich konnte nicht finden, dass funktionierende Lösung.
Ich habe versucht, ändern der java-Pfad ist es vielleicht die Ursache des Problems sein.
dies ist die Fehlermeldung die ich bekomme:
==> Caveats
We will install android-sdk-tools, platform-tools, and build-tools for you.
You can control android sdk packages via the sdkmanager command.
You may want to add to your profile:
'export ANDROID_SDK_ROOT=/usr/local/share/android-sdk'
This operation may take up to 10 minutes depending on your internet connection.
Please, be patient.
==> Satisfying dependencies
==> Downloading https://dl.google.com/android/repository/sdk-tools-darwin-3859397.zip
Already downloaded: /Users/jhon/Library/Caches/Homebrew/Cask/android-sdk--3859397,26.0.1.zip
==> Verifying checksum for Cask android-sdk
==> Installing Cask android-sdk
==> Warning: Failed to download any source lists!
==> Warning: java.nio.file.NoSuchFileException: /Users/jhon/.android/cache/sdkbin-1_b735609c-repository2-1_xml
==> Warning: Failed to find package tools
Error: Command failed to execute!
==> Failed command:
/usr/local/Caskroom/android-sdk/3859397,26.0.1/tools/bin/sdkmanager tools platform-tools build-tools;26.0.1
==> Standard Output of failed command:
==> Standard Error of failed command:
jhon-MacBook-Pro-8:appNativescript jhon$ brew cask install android-idk --verbose --debug
Error: Cask 'android-idk' is unavailable: No Cask with this name exists.
Error: Install incomplete.
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/install.rb:13:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/abstract_command.rb:35:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:97:in `run_command'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:167:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:131:in `run'
/usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:8:in `cask'
jhon-MacBook-Pro-8:appNativescript jhon$ brew cask install android-sdk
==> Caveats
We will install android-sdk-tools, platform-tools, and build-tools for you.
You can control android sdk packages via the sdkmanager command.
You may want to add to your profile:
'export ANDROID_SDK_ROOT=/usr/local/share/android-sdk'
This operation may take up to 10 minutes depending on your internet connection.
Please, be patient.
==> Satisfying dependencies
==> Downloading https://dl.google.com/android/repository/sdk-tools-darwin-3859397.zip
Already downloaded: /Users/jhon/Library/Caches/Homebrew/Cask/android-sdk--3859397,26.0.1.zip
==> Verifying checksum for Cask android-sdk
==> Installing Cask android-sdk
==> Warning: Failed to download any source lists!
==> Warning: java.nio.file.NoSuchFileException: /Users/jhon/.android/cache/sdkbin-1_b735609c-repository2-1_xml
==> Warning: Failed to find package tools
Error: Command failed to execute!
==> Failed command:
/usr/local/Caskroom/android-sdk/3859397,26.0.1/tools/bin/sdkmanager tools platform-tools build-tools;26.0.1
==> Standard Output of failed command:
==> Standard Error of failed command:
Warning: Failed to download any source lists!
Warning: java.nio.file.NoSuchFileException: /Users/jhon/.android/cache/sdkbin-1_b735609c-repository2-1_xml
Warning: Failed to find package tools
==> Exit status of failed command:
#<Process::Status: pid 35477 exit 1>
Error: Install incomplete.
jhon-MacBook-Pro-8:appNatives
Du musst angemeldet sein, um einen Kommentar abzugeben.
Dies ist, was die docs sagen und Sie können es versuchen -
Lösung 1 -
Installieren Sie die Abhängigkeiten für die Android-Entwicklung.
Installieren Sie JDK 8 oder eine neuere stabile offizielle Version.
Installieren Sie die Android SDK.
Führen Sie die folgenden Befehle in der
Terminal
:brew cask install android-sdk
Nächsten, führen Sie den folgenden Befehl, um die
ANDROID_HOME
system-environment-variable:export ANDROID_HOME=/usr/local/share/android-sdk
HINWEIS: Dies ist das Verzeichnis, das enthält die tools und die Plattform-tools-Verzeichnisse.
Darüber hinaus installieren Sie alle Pakete für die Android-SDK-Platform 25, Android SDK Build-Tools 25.0.2 oder höher, Android-Unterstützung-Repository, Google-Repository und alle anderen SDKs, die Sie brauchen können. Alternativ können Sie auch den folgenden Befehl verwenden, wird die Installation aller benötigten Pakete.
$ANDROID_HOME/tools/bin/sdkmanager
"Extras" "Plattform-tools" - "Plattformen;android-25" "build-tools;25.0.2" "extras;android;m2repository" "extras;google;m2repository"
Setup-Android-Emulatoren (AVD) durch die folgenden Artikel hier
ODER
Lösung 2
Download Android Studio and update für die API-levels und support repos das ist es - Arbeitet die ganze Zeit für mich
Android SDK