Reputation: 135
I am trying to use appcompat in my application. I have done everything according to the instructions. But when I add android-support-v7-appcompat as a library in my proect, I have an error like so:
Description Resource Path Location Type
The container 'Android Dependencies' references non existing library
'C:\Android\workspace\android-support-v7-appcompat\bin\
android-support-v7-appcompat.jar'
testActionBar Build path Build Path Problem
what am I not doing right?
Upvotes: 6
Views: 18999
Reputation: 6162
appcompat.jar
and v4-support.jar
from libs
folderclean ur project
import android-support-v7-appcompat
in eclipse as a library project and
check copy into workspace
android-support-v7-appcompat
as library in ur projectright click on ur project
-----> properties
------>android
------> add
I think this will help u
Upvotes: 9
Reputation: 61
With "compatibility" files problems you can try to delete / or rename for security any appcompat "project" in eclipse and create a new project using a compatibility mode (different target and "required" SDK values, equals to your version needs), it will generate a new appcompat project, remember to link your existing project to this appcompat project and check your lib for no duplicate compat. jar.
Upvotes: 0
Reputation: 141
Before creating the project, run eclipse as Administrator so that it creates the jar in the location that it is referencing to.
Right click the eclipse icon and select the option"Run as Administrator"
Upvotes: 5
Reputation: 31
Just do the following steps
Upvotes: 2
Reputation: 2200
Delete jar library from every directory you add. Then you need to add appcompat as a dependency. If you use Android Studio, you need to do as following:
add this
compile 'com.android.support:appcompat-v7:18.0.+'
into your gradle dependencies and after that, Build -> Rebuild Project.
Upvotes: 0