How to update Android emulator without Android Studio?
Solution 1
The standalone GUI SDK Manager is deprecated as of SDK Tools v25.2.3.
The instructions you see in the "Starting Android Emulator" run window are specific to updating via Android Studio. The SDK Manager inside of Android Studio is different than the standalone tool. We added new SDK packages that the old SDK Manager does not understand how to process nor update, including the new Emulator.
You have two ways going forward to update the emulator:
Use the new command line SDK Manager:
$ ./sdkmanager --update
Read more hereUse the new SDK Manager in Android Studio
Based on the window output, it also looks like your AVDs might be old, so you may want to create new AVDs or update for the latest features and better emulator performance & stability.
SDK Tools Release Notes saying it has been deprecated:
Solution 2
It is possible to update Android emulator without Android Studio using what I previously described as the "forced manual upgrade" and following the discussion in that post, I figured out some things concerning the standalone SDK:
It seems the emulator (originally distributed as part of the Android SDK Tools) is no longer updated since version 25.2.3
Thus the workaround involves a "manual/forced upgrade" of emulator tools. Currently I successfully upgraded to version 27.3.8 (and running Android 9 smoothly).
The workaround
Firstly make sure the base packages are still intact, and upgrade the emulator as follows:
Instructions
- Download the latest (or suitable emulator) from the links supplied below
- When done, decompress the downloaded emulator.zip file and extract the emulator package to
%USERPROFILE%\Android\android-sdk\tools
or relevant path (yes you have to merge it into that folder, since the emulator doesn't have all libraries and files) - After this your emulator will be updated (to 27.3.8 in my case):
Android SDK manager (GUI)
Now prepare your AVD as usual:
Android AVD manager
Important links
Base and Emulator tools(zip)
- Android SDK base installer (offline windows)
- Linux installer (can use wget also)
- Emulator version 27.3.8 (linux)
- Emulator version 27.3.8 (windows)
- Emulator 27.3.8 (mac os)
- Emulator version 26.1.4 (windows)
- Emulator version 26.1.4 (linux)
Emulator version 27.1.10 (mac os)
Emulator version 28.0.22 (latest linux os latest)
Emulator version 28.0.22 (windows os latest)
-
Emulator version 28.0.22(mac os latest)
Update: Added latest emulator versions
Special thanks to androiddev for providing links for linux, eaglemt and Vladyslav Panchenko for providing the links to repos and mostly important for mac os links.
Solution 3
This is what you can do to update to the most recent version that can be found here: https://developer.android.com/studio/releases/emulator
# go to your SDK directory
cd $ANDROID_HOME
# remove old emulator version
rm -r emulator
# this will fetch the version from Canary channel
# keep in mind that this might be unstable
sdkmanager "emulator" --channel=3
For some reason this:
sdkmanager --install "emulator;31.2.6" --channel=3
did not work for me, that's why I had to remove the old version.
![zbr](https://i.stack.imgur.com/dxzRr.jpg?s=256&g=1)
Comments
-
zbr over 2 years
I don't have Android Studio, just the Android SDK. When I launch one of my Android emulators using the Android Virtual Devices (AVD) Manager, I get the following message:
Your emulator is out of date, please update by launching Android Studio.
According to the steps, it seems that one could update the emulator even without Android Studio just by using the Android SDK Manager. But there is no SDK Tools tab.
Is the SDK Manager which is launched as a standalone application different from the SDK Manager available in the Android Studio?
Also, as you can see, everything is up-to-date and the version of Android SDK Tools is even newer than the one that is offered for downloading on the Android website (25.2.3 at the time of writing this question).
So how do I update the emulator? I don't need/want Android Studio.
-
zbr about 7 yearsWhere in the SDK Tools Release Notes that you have linked to can you see that it has been deprecated?
-
Jamal Eason about 7 yearsSee this screenshot: drive.google.com/file/d/0BzWK0F0x8GNDRkVkV01UOVplUVU/…
-
nacho4d over 6 yearsadded the screenshot to the answer, just in case above link gets broken someday
-
SiBrit over 6 yearsIt is difficult to update the SDK using the command line, as you need to run it from the tools\bin subfolder, which stops the update as it cannot move or delete the tools\ folder as part of the update. See stackoverflow.com/questions/43796568/… for how to get around that stupidity.
-
DADi590 over 3 yearsNot sure how much time they will have this here, but: mirrors.cloud.tencent.com/AndroidSDK. From Tencent, so I'd trust it. Links to many versions (maybe all versions?).