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:
~/Library/Android/sdk/emulator/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.
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.
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.
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.
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:
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
After that, the Android Emulator version was downgraded to 26.1.4-4266726.
..AppData\Local\Android\Sdk\emulator
.emulator -avd avd_name -gpu mode
, and this will initialize emulator. Mode can be host, guest.. etc For more clarification visit the following link If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With