How to add "android-support-v13.jar" in my project?

3

I'm following the "Android Application Development for Dummies" book and it came in a part of the book where it says the following: Copy the file android-support-v13.jar to the libs folder of your project.

I did just that. I found the file in the SDK folder. I copied to the libs directory where my project is, and I cleaned it for the eclipse. However, it is not detecting "android-support-v13.jar" in the "Android Dependences" folder, as the book says.

Is this really the correct way to "import" support v13 for my project in eclipse?

    
asked by anonymous 19.12.2014 / 17:48

2 answers

3

You have to reference the imported library in project.properties .

In a HelloWorld, it would look like this:

target=android-21
android.library.reference.1=../appcompat_v7

In this case, I'd leave it this way:

target=<sua versão>
<bibliotecas já importadas>
android.library.reference.n+1=../android-support-v13
    
19.12.2014 / 17:52
2

Well, assuming you're in Android Studio: Go to File, then click Project Structure. Inside Modules, go to app and then dependencies. In the upper right corner there is a button with sign (+), click it and then 'File Dependency'. Ok, so just add the lib "android-support-v13.jar".

    
19.12.2014 / 19:43