saarraz1
saarraz1

Reputation: 3029

"Android Private Libraries" doesn't appear in project

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.

Upvotes: 5

Views: 10735

Answers (6)

live-love
live-love

Reputation: 52494

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.

Upvotes: 0

Rahul Kishan
Rahul Kishan

Reputation: 314

  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:-)

Upvotes: 1

Ankit Jain
Ankit Jain

Reputation: 2270

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

Upvotes: 0

Yuan
Yuan

Reputation: 135

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.

Upvotes: 0

saarraz1
saarraz1

Reputation: 3029

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.

Upvotes: 11

Jayasagar
Jayasagar

Reputation: 2066

May be try the following steps

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

Upvotes: 10

Related Questions