user3176367
user3176367

Reputation: 135

Appcompat does not work

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

Answers (5)

Kaushik
Kaushik

Reputation: 6162

  • delete appcompat.jar and v4-support.jar from libs folder
  • clean ur project

    How to add android-support-v7-appcompat as a library

  • import android-support-v7-appcompat in eclipse as a library project and check copy into workspace

  • add android-support-v7-appcompat as library in ur project
  • right click on ur project -----> properties ------>android ------> add

how to add v-7 as library

  • clean ur project

I think this will help u

Upvotes: 9

BeepMaster
BeepMaster

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

Anton
Anton

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

mvuki
mvuki

Reputation: 31

Just do the following steps

  1. appcompat_v7_nn right click build project;
  2. click to your project, project clean

Upvotes: 2

alicanbatur
alicanbatur

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

Related Questions