5

The "Android Private Libraries" item is missing from my project (it doesn't appear in the Project Explorer in Eclipse)... It appears as though it isn't getting built into the project either, as I'm getting various errors regarding jar files in my "libs" folder...

It does appear in Java Build Path (yet it appears to be empty - no jar files appear under it in the Libraries tab), though, and I did make sure it is checked there.

If it is of any relevance, the project at hand has a lot of Android library project dependencies as well, and in those library projects the jar files under libs/ do appear under Android Private Libraries.

saarraz1
  • 2,999
  • 6
  • 29
  • 44

6 Answers6

11

I found the problem - I just recently added a new library project as a dependency, and it had an earlier version of android-support-v4.jar in its Android Private Libraries than the one I was using, so that ended up causing the entire Android Private Libraries folder not to be generated in the end project.

Found this out by looking at the Android Console after trying to build.

saarraz1
  • 2,999
  • 6
  • 29
  • 44
10

May be try the following steps

Please update question with eclipse screen shot to get more clarity on problem you face :)

Community
  • 1
  • 1
Jayasagar
  • 2,046
  • 19
  • 22
1
  1. check console
  2. you can find android-support-v4.jar in two paths
  3. Go to those path manually and replace the android-support-v4.jar with larger size

thats it!!it works for me:-)

Siddharth
  • 9,349
  • 16
  • 86
  • 148
Rahul Kishan
  • 314
  • 4
  • 18
0

this question is duplicated with Libraries do not get added to APK anymore after upgrade to ADT 22

Firstly, you may need to check out our "Problems" view in eclipse for any useful information there. In my issue, it said that two versions of android-support-v4.jar were found in workspace. this error prevented the importation of private libraries. Issue was fixed after I removed one of the jar file.

Community
  • 1
  • 1
Yuan
  • 135
  • 1
  • 9
0

I removed android-support-v4.jar from java build path in properties and it worked for me.

Ankit Jain
  • 2,230
  • 1
  • 18
  • 25
0

Remove the oldest jar file from the libs folder and replace it with the same jar file that's being referenced in the other project. If they both have the same version it should work and you should see your Android Private Libraries folder again.

live-love
  • 48,840
  • 22
  • 240
  • 204