How to add new library depending on android using eclipse adt?

I am trying to add an external library to android dependencies using eclipse adt. I have several libraries like pull to refresh etc. But every time I add a new library jar file, it appears outside the android dependency library library. How to make it link to other libraries as part of the android dependency library. Here is what I have done so far: Project> Properties> java build path> libraries> add jars (also tried to add external banks), but it always showed my new jar file independently, I want it to be part of android dependencies). any key? Here is a screenshot, I would like to add it as part of android dependencies:

enter image description here

+6
source share
2 answers

I still don't understand why this is important to you.

However, when you refer to the library project: rightclick project-> properties-> Android-> Add, then the jar goes into Android Dependencies.

If you add the jar directly to your project under libs or using the build path, then it gets into the private Android libraries.

Both methods work, but references to the library project can have advantages if you want to change the library code during development.

+8
source

In my case, I had the following in the project.properties file

target=android-18 proguard.config=proguard.cfg android.library=false android.library.reference.1=..\\com_facebook_android android.library.reference.2=../actionbarsherlock 

After I changed the last line to

 android.library.reference.2=..\\actionbarsherlock 

actionbarsherlock.jar appeared in Android Dependancies, and I could run my application without exception java.lang.noclassdeffounderror

-1
source

Source: https://habr.com/ru/post/959251/


All Articles