Adding libs on android with eclipse

5

I usually get the jar and put it inside the lib folder of my project, but I have already seen people doing the same thing and adding it to the "Java Build Path / Add JARs ...", is it different from just putting it in the folder?

    
asked by anonymous 26.10.2014 / 04:01

1 answer

1

When you add a library through the Java Build Path / Add JARs, the project will import a reference (the path where the library is) from your library, say say add a library which is on your desktop (C: \ Users \ User \ Desktop), then eclipse will reference this library if you later come remove or move that library from your desktop the ecplise will not run your project as it is missing the library.

If you directly in the lib folder, the project will contain the library without a reference to a different location other than the lib folder, unlike the case described previously. some part of your code and later deletes or moves that library will result in a compilation error.

    
26.10.2014 / 04:34