Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android dependancies configuration

I am going through the Android app tutorial here:

http://developer.android.com/training/basics/actionbar/styling.html

As part of what I am doing I added in the appcompat library as part of adding in the themes. Not sure how I got to this point but when I try to run the app I get the error :

"The container 'Android Dependencies' references non existing library 'D:\eclipse-bundle\sdk\extras\android\support\v7\appcompat\bin\android-support-v7-appcompat.jar'"

The library DOES exist, just not at this location. It is located at:

D:\eclipse-bundle\sdk\extras\android\support\v7\appcompat\libs\android-support-v7-appcompat.jar

There does not appear to be any way to edit this property. How do you fix this problem? what is causing it?

Thanks in advance for any help.

like image 630
Terry H Avatar asked Oct 04 '13 12:10

Terry H


Video Answer


2 Answers

Make sure you follow this step to add .jar files.

In the new library project, expand the libs/ folder, right-click each .jar file and select Build Path > Add to Build Path. For example, when creating the the v7 appcompat project, add both the android-support-v4.jar and android-support-v7-appcompat.jar files to the build path.

like image 73
Lee Chun Hoe Avatar answered Oct 23 '22 12:10

Lee Chun Hoe


I had the same issue so I CMD+Q'd Eclipse and re-opened it.... magically worked. I guess "turning it off an on again" works sometimes :D

like image 28
Deminetix Avatar answered Oct 23 '22 12:10

Deminetix