Android studio error: An error occurred while trying to compute required packages
Update:
There's a manual workaround!
As per post https://stackoverflow.com/a/42733510/7694425 :
- Download the command line tools, place them in the SDK folder (e.g.,on mac: /Users/user/Library/Android/sdk), and then add the binfolder to the PATH.
- Install the latest platform: in a terminal,execute sdkmanager "platforms;android-25"
- Open Android Studio, andgo to the SDK Manager (Appearance and Behavior > System Settings >Android SDK)
- Click on "Edit", and then select the sdk folder. Then"Next" > "Next" > "Finish".
Still, it doesn't resolve the missing emulator package therefore the Android SDK tools can't be updated since it's a dependency. But Android studio works and you can download other packages.
Looking forward to a better solution.
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!
Previous answer:
The same problem here.
Twitted @androidstudio too. Hopefully someone in a position to fix this will notice.
Updated: It should be fixed now.
This is https://code.google.com/p/android/issues/detail?id=244956 -- we're working on a hotfix.
After lot of struggling I made it work.Here my solution
When I get the "An error occurred while trying to compute required packages" error I just clicked "finished" and then I went to the main Android Studio page:
Then I selected Configure -> SDK manager and I launched the SDK installation from there
Reopened Android Studio and everything was ok
Really, really embarrassing for a software which used to be very good. You can feel the "bloatness" of Eclipse creeping in