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

后端 未结 8 1475
予麋鹿
予麋鹿 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:06

    This fixed it for me (on a fully-patched Ubuntu 16.04 (Xenial Xerus)).

    Disclaimer: I cleaned up everything beforehand:

    rm -Rf ~/android-studio/ ~/.AndroidStudio2.2/ ~/.android/ ~/Android/
    

    Then:

    • wget https://dl.google.com/dl/android/studio/ide-zips/2.3.0.8/android-studio-ide-162.3764568-linux.zip
    • wget https://dl.google.com/android/repository/tools_r25.2.3-linux.zip
    • unzip android-studio-ide-162.3764568-linux.zip -d ~/
    • mkdir -p ~/Android/sdk
    • unzip tools_r25.2.3-linux.zip -d ~/Android/sdk
    • ~/Android/sdk/tools/bin/sdkmanager "platforms;android-25"
    • ~/Android/sdk/tools/bin/sdkmanager --channel=3 emulator
    • ~/android-studio/bin/studio.sh
    • Click "Configure" in the launch window
    • Select "SDK Manager" in the menu
    • The list on the right shows "partially installed" for API level 25
    • Click "Edit" on the right of "Android SDK Location"
    • You get the warning "an existing Android SDK was detected wizard will only download missing or outdated SDK components"
    • Click "Next"
    • Click "Next"
    • [wait while it installs]
    • Click "Finish"

提交回复
热议问题