Reputation: 3029
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
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
Reputation: 314
thats it!!it works for me:-)
Upvotes: 1
Reputation: 2270
I removed android-support-v4.jar from java build path in properties and it worked for me.
Upvotes: 0
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
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
Reputation: 2066
May be try the following steps
Package Explorer -> Right click the project -> Android Tools -> Fix Project Properties
.Project -> Clean
Please update question with eclipse screen shot to get more clarity on problem you face :)
Upvotes: 10