简体   繁体   English

类型容器'Android Dependencies'引用非现有库android-support-v7-appcompat / bin / android-support-v7-appcompat.jar

[英]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 我在尝试使用Action Bar Compat支持库到我的项目时遇到了一些错误,我不知道出了什么问题,因为我已按照此链接的说明进行操作> http://developer.android.com/tools/支持库/ 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' 我的错误是:容器'Android Dependencies'引用了不存在的库'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. 为了解决这个问题,我去了项目>属性> java构建路径>库>添加jar> appcompat_v7> libs>,然后我选择了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. 与您在上面提到的说明中一样,请确保按照此步骤添加.jar文件,而不是直接转到“属性”>“Java构建路径”>“库”以添加它们。

In the new library project, expand the libs/ folder, right-click each .jar file and select Build Path > Add to Build Path. 在新库项目中,展开libs /文件夹,右键单击每个.jar文件,然后选择“构建路径”>“添加到构建路径”。 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. 例如,在创建v7 appcompat项目时,将android-support-v4.jar和android-support-v7-appcompat.jar文件添加到构建路径。

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. 按照您提供的链接中的说明操作后,关闭项目,然后关闭Eclipse,重新启动Eclipse,打开项目,然后清理并构建项目。 This did the trick for me. 这对我有用。

These days I used the latest android support library 21 and got the same issue. 这些天我使用了最新的Android支持库21并得到了同样的问题。
I followed the answer of @dazilli,but do not work. 我按照@ dazilli的回答,但不行。
Just now,I updated the JDK from 6 to 7,then it solved the problem. 刚才,我将JDK从6更新到7,然后解决了这个问题。

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

  • andriod platform must be android 5.0 and set 'target=21' andriod平台必须是android 5.0并设置'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. 在我的情况下,文件位于appcombat_v7 / lib文件夹中,所以我做的是右键单击.jar文件(将有两个文件选择android-support-v4.jar),然后选择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. 它的作用是将此文件添加到构建路径(即它将此文件添加到“bin文件夹”),这将解决问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 容器“ Android Dependencies”引用了不存在的库“ /workspace/appcompat_v7/bin/appcompat_v7.jar” - container 'Android Dependencies' references non existing library '/workspace/appcompat_v7/bin/appcompat_v7.jar android-support-v7-appcompat.jar未安装? - android-support-v7-appcompat.jar not installed? Android依赖关系android-support-v7-appcompat.jar - Android Dependencies android-support-v7-appcompat.jar Android依赖关系中缺少android-support-v7-appcompat / bin - android-support-v7-appcompat/bin missing in Android Dependencies 容器Android依赖关系引用了不存在的库/home/user/workspace/appcompat_v7/bin/appcompat_v7.jar - The container Android Dependencies references non existing library /home/user/workspace/appcompat_v7/bin/appcompat_v7.jar 罐子不匹配! 修复android-support-v7-appcompat中的依赖项 - Jar mismatch! Fix your dependencies in android-support-v7-appcompat android-support-v7-appcompat库错误 - android-support-v7-appcompat library error android-support-v7-appcompat支持库不与android 2.2一起使用 - android-support-v7-appcompat support library not woking with android 2.2 容器'Android Dependencies'引用不存在的库appcompat_v7.jar' - The container 'Android Dependencies' references non existing library appcompat_v7.jar' android-support-v7-appcompat中没有样式的父项 - No parent in style in android-support-v7-appcompat
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM