How to Downgrade Android Emulator

How to downgrade Android Emulator

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.

How to Download/Downgrade Android emulator manually

You can download 28.0.25 here:

  • Windows: https://dl.google.com/android/repository/emulator-windows-5395263.zip
  • Mac: https://dl.google.com/android/repository/emulator-darwin-5395263.zip
  • Linux: https://dl.google.com/android/repository/emulator-linux-5395263.zip

Android AVD - The emulator process for AVD emulator_name has terminated

I made it work...

Apparently, the Android Emulator updated to the latest version was the problem. Apparently many conflicts with vulkan.dll and other emulation process stopped working with this new version (at least for me in my computer).

I downloaded an old version of the android emulator based on this answer and then it started working again...

Issue running Android Studio emulator: git set up launches and tries to downgrade

I see that error message in git-for-windows/build-extra installer/install.iss

It pops up just after querying the Windows registry:

HKEY_LOCAL_MACHINE,
'Software\GitForWindows',
'CurrentVersion',
PreviousGitForWindowsVersion

And when the IsDowngrade(CurrentVersion:String):Boolean somehow return true because the current version from the registry is different from the current one.

Forcing the previous version to be empty would side-step this issue.

Android Emulator: Installation error: INSTALL_FAILED_VERSION_DOWNGRADE

It means you're trying to install an app with the same packageName as an app that's already installed on the emulator, but the one you're trying to install has a lower versionCode (integer value for your version number).

You might have installed from a separate copy of the code where the version number was higher than the copy you're working with right now. In either case, either:

  • uninstall the currently installed copy

  • or open up your phone's Settings > Application Manager to determine the version number for the installed app, and increment your <manifest android:versionCode to be higher in the AndroidManifest.

  • or https://stackoverflow.com/a/13772620/632951

How to downgrade my SDK Version?

Anyway, for those who want to downgrade Android SDK Tools to a previous version, it can be possible following these steps:

  1. Find your Android SDK folder
  2. Locate the "tools" subfolder and rename it to "tools1" (just to keep a backup copy of the original tools folder)
  3. Likewise, rename platform-tools to platform-tools1
  4. Download from google repository the SDK Tool version you want to downgrade to (for instance: http://dl-ssl.google.com/android/repository/tools_r22.6.2-macosx.zip) and unpack it.
  5. The ZIP file you downloaded contains a tools folder that has to be moved to your Android SDK folder.
  6. Likewise, download the platform tools (for instance: http://dl-ssl.google.com/android/repository/platform-tools_r19.0.1-macosx.zip), and extract it in your SDK folder.

That's it.



Related Topics



Leave a reply



Submit