How to downgrade my SDK Version?
Asked Answered
T

5

67

I made a stupid mistake by upgrading my SDK version to r15 as the android repository was not loading. How do I revert back to my older version r10? Or is sticking with the newer version better? I'll have to upgrade my ADT Plugin as well then. Thanks a lot.

Taxis answered 4/3, 2012 at 13:39 Comment(1)
how about reinstalling the SDK?Prospect
C
120

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.

Cunha answered 17/7, 2012 at 0:59 Comment(5)
Thanks -- fyi -- for Mac OSX, I was able to downgrade to 20.0.3 as 21.x will not compile our app. $ wget dl-ssl.google.com/android/repository/tools_r20.0.3-macosx.zipErythrocytometer
are these listed anywhere? are these supported? do you do it by trial and error?Cleome
what @naxa asked… my god, how ridiculous is this?Solarize
For the list of SDKs by version number, please see my answer below.Rms
After a long day , i found this solution, thanks Man!Clercq
R
76

I want to follow up on the great answer provided by Ariel Iriarte, step 3 (Download from google repository the SDK Tool version you want to downgrade to).

To find the old tools, you need to determine the SDK version number that you want to revert to. On the Google Android SDK webpage, you will find a Revisions list that shows all the SDK numbers, e.g.

  • SDK Tools, Revision 22.6.2 (March 2014)
  • SDK Tools, Revision 22.3 (October 2013)
  • etc.

Make a note of the exact revision number, like "22.3".

Now download the tools by using the following pattern:

where you must replace XXX with the exact revision number noted above. For example, to download revision 22.0.5 for Mac OS X, download the file:

http://dl-ssl.google.com/android/repository/tools_r22.0.5-macosx.zip

Once you download the file and unzip it, you will find a single folder called 'tools'. Now follow the answer by Ariel Iriarte and replace your android-sdk/tools folder with this new one. This is the folder that contains stuff like:

  • NOTICE.txt
  • adb_has_moved.txt
  • android
  • ant
  • apps
  • ddms
  • dmtracedump
  • etc.
Rms answered 11/4, 2014 at 21:16 Comment(6)
Similarly, if you need platform-tools version XXX for linux, use dl-ssl.google.com/android/repository/… template. E.g. for 19.0.1 it will become dl-ssl.google.com/android/repository/…Sacculate
I'd recommend the following links to accomplish the task: SDK Tools Release Notes and SDK Platforms Release NotesLarhondalari
This is useful, but only works for versions up to and including 25.2.5.Alfie
The URLs for versions newer than 25.2.5 changed format. They now no longer reference the SDK version, but some kind of build number or version control revision or something instead. For example the URL for the tools for SDK 25.3.1 for macOS is dl.google.com/android/repository/sdk-tools-darwin-3773319.zip and for SDK 26.0.1 is dl.google.com/android/repository/sdk-tools-darwin-3859397.zipAlfie
As @Alfie said it seems the links for the most recent revisions (after 25.2.5) changed or are inexistent for GNU/Linux versions. I could download only revision 25.2.5. The oldest ones I didn't try.Capillarity
For mac the links still work, even for v29+, but you need to put -darwin.zip at the end instead of macosxAppenzell
O
7

Some of you probably found this thread due to the unstable versions of Android-Tools pushed (exclusively) since the stable 22.3 version. This causes a 'hang' in the emulator on the "Android Animation / Splash Screen" in Intel API's pre Version 19, and a "floating point exception" for Intel API-19. The ARM versions still work, though more slowly on Intel machines using acceleration.

To answer the questions of "how to find the older versions not listed in the GUI" - or present in the current xml which feeds it (https://dl-ssl.google.com/android/repository/repository-8.xml), in the comments above, I have no idea how they can be located (please enlighten me).

Fortunately, someone reporting the bug did post a direct link to the Linux and Windows versions of the stable 22.3 version in this thread:

https://code.google.com/p/android/issues/detail?id=66786 ... which are:

http://dl.google.com/android/android-sdk_r22.3-linux.tgz

http://dl.google.com/android/android-sdk_r22.3-windows.zip

These also exist in unofficial locations on the web, should those get pulled down, along with the now-gone references to them.

After extracting that archive, you will have the "Tools" folder you need to replace the broken one, as per Ariel Iriarte's instructions above (though I renamed the existing 'Tools' folder something involving the letter 'f' - days into this problem).

In order to prevent this problem from re-occuring, do NOT count on the built-in method in Eclipse / Android-SDK to revert to a previous installation, nor for the older-versions of any file provided by Google to be available At All, Ever, in the future. Backup your entire 'android-sdks' tree prior to installing anything.

Oviform answered 2/4, 2014 at 2:27 Comment(0)
P
2

You can install multiple SDKs, and set the default SDK by editing the properties on the Android project.

Phenosafranine answered 4/3, 2012 at 13:43 Comment(2)
So basically I should download another SDK Manager to get this running again?Taxis
Yes, although in general, upgrading doesn't delete the older version.Phenosafranine
C
-1

The simple solution is :

1- Go to your graddle-wrapper.properties then change this line as you desire :

distributionUrl=https://services.gradle.org/distributions/gradle-4.4-all.zip

2- Go to File>Project Structure>Project then Change both Gradle version and Gradle Plugin Version

3- then Sync your Project

Done.

Catrinacatriona answered 11/8, 2018 at 12:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.