Being new to Android developent I followed the simplest of tutorials, built a new android project, accepting all default settings (built it for kitkat). To my dismay I have an un-planned project - appcompat_v7
, along with the errors:
The container 'Android Dependencies' references non existing library 'C:\Users...\workspace\appcompat_v7\bin\appcompat_v7.jar'
and twice the following
The project cannot be built until build path errors are resolved
Is there a quick way to fix these? Is this a sign of how difficult, and bugged with unpleasant surprises learning Android is going to be?
(Hope it will not be similar to learning IOS 6 years ago...)
it worked for me when i changed project build tarjet to API 21 for the android_support_v7_appcompact project
Need to update your SDK manager
click ur sdk manager icon in the ecilipse then update android support Repository in the extras
then
go to File->import->existing project
after import v7 to workspace go to lib folder choose both jar and right click and choose build to workspace then again right click v7 project go to java build path choose the checkbox and click apply and ok..
if u have updated sdk then follow this steps
step 1:
Right click ur project then go to
step 2:
click Add External jar
Step 3:
Browse to ur adt bundle go to ur workspace choose the folder
The
appcompat_v7
library is added by default in an Eclipse Android project. You will most likely need it for any demo projects you start making.To correctly add this library, follow these steps
For Android Studio:
1. Ensure that you have the Android Support Repository installed in your SDK Manager:
2. In your
build.gradle
file, include the followingcompile
statementin the
dependency
bracket.3. Perform a Gradle sync with the
Sync Project
button.For Eclipse:
The trick is, you need to clean & build the
appcompat_v7
project. Go toAfter doing this, if the project does not get built automatically, right click on the project in the package explorer and select
Build Project
. Now the.jar
file will be generated in the project'sbin
folder. After that, clean & build all projects that referenceappcompat_v7
.Now the library should be correctly referenced by all projects that need it.
Note also that:
Further References:
1. How to add Android Support v7 libraries in eclipse.
2. Android actionbar how to add supporting library v7 appcompat for Eclipse.
3. android-support-v7-appcompat library project won't work.
4. Difference between android-support-v7-appcompat and android-support-v4.