Error “Dependent package with key emulator not found” while updating Android SDK and tools

后端 未结 8 1454
予麋鹿
予麋鹿 2020-12-08 09:38

I tried to update my Android Studio and got this error. How can I fix this?

I don\'t have much experience with Android studio and Android app development.

I

8条回答
  •  [愿得一人]
    2020-12-08 10:04

    This is what worked:

    1. Download the command line tools and place them in the SDK folder (on mac:~/Library/Android/sdk).
    2. Install Android studio 2.3 (on mac: /Application/Android Studio.app)
    3. Add path to java in Android Studio (export PATH=/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin:$PATH)
    4. Set JAVA_HOME (export JAVA_HOME=/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home)
    5. cd to ~/Library/Android/sdk/tools/bin and execute ./sdkmanager "platforms;android-25"
    6. Accept the license - this will install the android-25 platform
    7. Launch Android Studio, and goto the SDK Manager. The SDK Manager will now recognize the SDK path (~/Library/Android/sdk).
    8. Now install the rest of the tools.

提交回复
热议问题