Link to the library project in Android

If I decide to use the library project in mine, I still need to save this library project in my workspace. Is there any way to avoid this? Also, does this mean that I have to provide a folder with the library project added with my folder?

+5
source share
2 answers

Library projects work like a charm, but, of course, you need to keep them open in the workspace, since every time eclipse builds your project, it needs to access all the material from the library project.

If you do not want this project to be open, and you do not plan to change it much. And this is not an Android project, this is a JAVA console project that you can build it once and instead of using the link to the JAR library project in your Android project.

+3
source

If you want to do this outside of Eclipse (let's say you build a terminal using ant, i.e. in continuous integration, or if you just hate Eclipse.) Just put the library project in a neighboring directory. In your main project, edit project.propertiesto include :

android.library.reference.1=../LibraryFolderName

If you have several libraries to add, simply specify them accordingly, i.e.

android.library.reference.1=../LibraryFolderName
android.library.reference.2=../AnotherLibraryFolderName
+1
source

All Articles