Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to downgrade Android Emulator

Tags:

With Android Studio's Android Emulator I'm seeing a problem displaying a complex WebGL-enabled graphics web page in a Java WebView widget (PixiJS demos appear blank in WebView on Android emulator). But I can only reproduce the problem with Android Emulator 27.1.12-4623001. It runs fine for my colleagues running Android Emulator 26.1.4-4266726.

How can I downgrade my Android Emulator from 27.1.12-4623001 to 26.1.4-4266726? I use Android Studio 3.0.1 (so does one of my colleagues though but her Android Studio still has Android Emulator 26.1.4-4266726. I'm also on Mac with High Sierra.

I looked on the Android Emulator Release Notes page but I don't see instructions on how to downgrade old versions. I did try downgrading Android Studio itself but even when I installed Android Studio 2.2.3, the emulator was still 27.1.12-4623001. I even deleted Android Studio 3.0.1 by following How to completely uninstall Android Studio?.

What version of the Android Emulator do I have?

Three methods:

  1. Launch the emulator, tap "..." on the right-hand side panel, click Help > About.
  2. Go to Android Studio > Preferences, search for "Android SDK", click "SDK Tools", and then scroll to Android Emulator.
  3. On Mac, go to Terminal and run ~/Library/Android/sdk/emulator/emulator -version
like image 473
Michael Osofsky Avatar asked Mar 05 '18 22:03

Michael Osofsky


People also ask

How do I downgrade my emulator version?

Download http://dl.google.com/android/repository/emulator-darwin-4266726.zip via Chrome into ~/Downloads. Backup the main emulator directory: mv ~/Library/Android/sdk/emulator ~/Downloads/emulator-backup. Replace the main emulator directory: mv ~/Downloads/emulator ~/Library/Android/sdk/ Restart Android Studio.

How can I change my Android emulator version?

Open the Preferences window by clicking File > Settings (on Mac, Android Studio > Preferences). In the left panel, click Appearance & Behavior > System Settings > Updates. Be sure that Automatically check for updates is checked, then select a channel from the drop-down list (see figure 1). Click Apply or OK.

How do I terminate an emulator?

To stop a running emulator, click Menu and select Stop. To clear the data for an emulator, select Wipe Data. Or click Menu and select Wipe Data.

Can I downgrade Android studio?

Currently there is no direct way with which a downgrade can be done. I managed to do the downgrade by downloading Android Studio 3.0. 1 from here and then running the installer. It will prompt whether to uninstall previous version, and when you allow and proceed, it will remove 3.1 and install 3.0.


2 Answers

Google support said I could download old Android Emulator versions as follows:

http://dl.google.com/android/repository/emulator-darwin-4266726.zip (for Mac) http://dl.google.com/android/repository/emulator-windows-4266726.zip http://dl.google.com/android/repository/emulator-linux-4266726.zip

Basically, just put the # (the one in major.minor.patch-#) along with darwin/windows/linux if you'd like to download any previous build.

To install on my Mac computer, I did as follows:

  1. Download http://dl.google.com/android/repository/emulator-darwin-4266726.zip via Chrome into ~/Downloads

  2. Backup the main emulator directory: mv ~/Library/Android/sdk/emulator ~/Downloads/emulator-backup

  3. Replace the main emulator directory: mv ~/Downloads/emulator ~/Library/Android/sdk/

  4. Restart Android Studio

After that, the Android Emulator version was downgraded to 26.1.4-4266726.

like image 158
Michael Osofsky Avatar answered Sep 20 '22 15:09

Michael Osofsky


  1. Download an older version of emulator from emulator-windows-5395263.zip and replace it with the existing emulator in ..AppData\Local\Android\Sdk\emulator.
  2. Restart the Android studio and in terminal run the following command emulator -avd avd_name -gpu mode, and this will initialize emulator. Mode can be host, guest.. etc For more clarification visit the following link
like image 43
jin_wolf Avatar answered Sep 18 '22 15:09

jin_wolf