Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 am using Android Studio 2.3 and Linux.

Screenshot

like image 402
ankit Avatar asked Mar 11 '17 07:03

ankit


2 Answers

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!

like image 198
ankit Avatar answered Sep 17 '22 22:09

ankit


This is what worked for me:

  1. Download the command line tools, place them in the SDK folder (e.g., on mac: /Users/user/Library/Android/sdk), and then add the bin folder to the PATH.
  2. Install the latest platform: in a terminal, execute sdkmanager "platforms;android-25"
  3. Open Android Studio, and go to the SDK Manager (Appearance and Behavior > System Settings > Android SDK)
  4. Click on "Edit", and then select the sdk folder. Then "Next" > "Next" > "Finish".

I hope this works for you too.

like image 28
Miguel Jiménez Avatar answered Sep 18 '22 22:09

Miguel Jiménez