Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the "Android Private Libraries" folder in Eclipse?

I initially thought it was exclusively for official libraries like the support library. However any time I add a custom JAR using the "Add to build path" menu item, it automatically shows up in both "Referenced Libraries" and "Android Private Libraries". One of these is redundant since there is no point in exporting both at build time. Additionally, "Android Private Libraries" cannot be modified so I can't (easily) add java doc or source paths. Not to mention it just seems wrong that a custom JAR is in "Android Private Libraries".

I cannot delete the entry from "Android Private Libraries" to use only "Referenced Libraries" either.

like image 331
Monstieur Avatar asked Dec 16 '13 05:12

Monstieur


Video Answer


2 Answers

In my case i always add libraries to libs folder.

According to my understanding thats the way its suppose to be. Android Private Library folder references these jars in libs folder. The Android Private Library is used during the creation of apk (probably during the conversion of your java code into dex file).

like image 191
Sheraz Ahmad Khilji Avatar answered Sep 23 '22 08:09

Sheraz Ahmad Khilji


I don't have any problem with custom jars. They are only in Reference Libraries in my case. I suggest you to look at Order and Export tab in java build path properties.Just check all the custom jars and uncheck all the Android specific libraries. If you want all jars in Reference Libraries then check all jars and clean your project.

enter image description here

like image 28
Sunny Avatar answered Sep 25 '22 08:09

Sunny