Ubuntu – When I try to update Android Studio I get “ error resolving packages ”

androidandroid-studioUbuntu

I have Android Studio 3.4.2 on Ubuntu 18.0.4
When I try to update it I get below error

error resolving packages

Package "Android Emulator" with revision at least 29.1.7 not available

I search for this error but I could not find any solution for it

did anyone has the same issue

Best
Salem

Best Answer

These are the steps that solved the problem for me:

  • In Android Studio, go to "Appearance and Behaviour - System Settings"
  • There, choose "Updates" and set "Automatically check updates for" to "Canary Channel" (Maybe sth else will do, too, but it seems that "Stable" would be the wrong choice)
  • Then switch to "Android SDK" -> "SDK Tools" and update the "Android Emulator" (which is the one thing that is not installed with the proper version)
  • When finished, switch to "Android SDK" -> "SDK Platform" and activate the "Show Package Details" checkbox (bottom right)
  • Under "Android 9.+ (Q)" the checkbox next to "Google API Intel x86 Atom System Image" can be activated (it should be a "-" at the moment).
  • After that, click "Apply"

The Download should start. If it is finished, it might be advisable to change back to the stable update channel (I did and so far there are no problems; the "Update" message disappeared).

Hope that helps!

Change update channel to something else then stable

Update Android Emulator

Update the Google APIs ... Atom ...

Related Question