简体   繁体   中英

Type The container 'Android Dependencies' references non existing library android-support-v7-appcompat/bin/android-support-v7-appcompat.jar

I just got some kind of error when trying to using Action Bar Compat support library to my project, I don't know what's wrong, because I have followed the instructions from this link > http://developer.android.com/tools/support-library/setup.html

So, this is the screen shot of the error .. IDE

I also encountered such problem. My error was: The container 'Android Dependencies' references non existing library 'C:\\development\\adt-bundle-windows-x86-20140702\\workspace\\appcompat_v7\\bin\\appcompat_v7.jar'

To solve this, I went project>properties>java build path>libraries>add jars>appcompat_v7>libs>, then I selected android-support-v7-appcompat.jar. After this, I went to project>clean. This fixed the problem. Hope you find my hint helpful.

As in the instructions you mentioned, please make sure to follow this step to add .jar files instead of directly go to Properties > Java Build Path > Libraries to add them.

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.

I just had this issue, when creating a new project. After following the instructions from the link you provided, close your project, then close Eclipse, restart Eclipse, open your project then clean and build your project. This did the trick for me.

These days I used the latest android support library 21 and got the same issue.
I followed the answer of @dazilli,but do not work.
Just now,I updated the JDK from 6 to 7,then it solved the problem.

首先清理一个库项目和构建项目检查库项目有bin文件,然后清理你的项目为我工作

  • andriod platform must be android 5.0 and set 'target=21'
  • make sure download Extras 在此输入图像描述

In my case the files were in appcombat_v7/lib folder, so what i did is right-click the .jar files (there will be two files select android-support-v4.jar) and then select Build Path>Add to Build Path. What it does is that it adds this file to the Build Path (ie it will add this file to the "bin folder") which will solve the problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM