Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I install a previous Android Support library (version 8)

Tags:

android

adt

I have just installed the latest ADT Tools for Eclipse, so I'm right now at v20.0.

This release introduced a new Project wizard, and in one of the last steps it says that it requires the Android Support Library Version 8.
Ok, but in my SDK Manager it tells me I have Android Support Library version 9 installed.

How can I get this working, is there a way to install the older Android Support Library version 8?

like image 450
Magnus Johansson Avatar asked Jul 06 '12 21:07

Magnus Johansson


2 Answers

OK, just as I posted my question , I did found a workaround.

It seems like the ADT is looking for the Support Libraries in the wrong folder...
The folder the libraries are in is:
(1) \extras\android\compatibility but ADT looks for them in:
(2) \extras\android\support
So you have to create the folder (2) and copy all files that are in folder (1) to it.

like image 149
Magnus Johansson Avatar answered Oct 03 '22 20:10

Magnus Johansson


Above answer is basically correct. But simply copying did not work for me. What worked for me is to:

  1. Open SDK Manager

  2. Check "Android Support Library"

  3. Click "Delete 1 Package"

  4. Then check "Android SDK Library" again and

  5. Click "Install 1 Package"

This removed the Support Library from extras\android\compatibility and installed it again under extras\android\support

like image 40
tmanthey Avatar answered Oct 03 '22 18:10

tmanthey