14

Is it possible to revert Android SDK Tools to an earlier revision (for example from r17 to r16 or r15)?

Mehmed Mert
  • 935
  • 1
  • 7
  • 24
  • I think it's not possible. Are there any good reasons to do that? – Alexander Kulyakhtin Apr 05 '12 at 13:12
  • 4
    because i have some problem with the build of my projects, which actually worked until the update. i've also looked for fixed, but still no solution found and it seem like that the simpliest way to get the builds work again is to revert back the Android SDK Tools revision (at least until in a newer revision it works properly)... – Mehmed Mert Apr 05 '12 at 13:25
  • around switch to rev 17 I believe the libraries changed. You then had to put the libraries in a libs folder to get them deployed properly. Just in case you don't want to stay on r16 forever :-). More information on changes per revision: http://developer.android.com/tools/sdk/tools-notes.html – hcpl May 29 '13 at 18:03
  • @AlexanderKulyakhtin Google sometimes makes breaking changes to its SDK and you need earlier tools , for example, SDK TOOLs update 21 breaks the game engine cocos build system – Dr Deo Jul 30 '17 at 13:19

3 Answers3

2

Download the older tools, and delete the new ones and unpack the old ones and your done. Is nothing more to it than that. The tools can be downloaded from the "android" program in the tools directory of you current sdk.

android-sdk-linux-17/tools$ ./android
Carl-Emil Kjellstrand
  • 1,233
  • 1
  • 10
  • 17
  • `sh.exe": ./android: No such file or directory` This is what I get when I run that command from the tools folder. – Jared Aug 07 '14 at 13:53
  • Are you sure your standing in the tools directory? What does "ls -la" and "pwd" output when you are standing in that directory? – Carl-Emil Kjellstrand Aug 08 '14 at 15:50
2

@erbsman this is not possible to download old version of sdk tool from Android too. because it uses an xml file(check logs on ANDROID TOOL) to get location of all zip files. so you have to do some kind of hack for that. check out following link for hack

Download the Android SDK components for offline install

Community
  • 1
  • 1
Ankit
  • 1,916
  • 2
  • 20
  • 33
0

The problem you're having has to do with a change the Android team made to how lib jars are referenced.

Does this solve the problem? http://android.foxykeep.com/dev/how-to-fix-the-classdefnotfounderror-with-adt-17

Hounshell
  • 5,321
  • 4
  • 34
  • 51