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

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

    This worked for me as this post try: Update 2 https://stackoverflow.com/a/42735118/5133603

    Update 2:

    Solution to emulator package issue!

    After digging in the repo's XML for a while I've spotted the issue.

    It turns out that the "emulator" package is only in channel 3 (canary) while the "tools" package is in channel 0 (stable) but depends on "emulator". The solution is to force the manager to download the "emulator" package from channel 3:

    ./sdkmanager --channel=3 emulator
    

    Problem solved!

提交回复
热议问题