我在这里浏览 Android 应用程序教程:
http://developer.android.com/training/basics/actionbar/styling.html
作为我正在做的工作的一部分,我在添加主题的过程中添加了 appcompat 库。不确定我是怎么走到这一步的,但是当我尝试运行该应用程序时,出现错误:
“容器‘Android Dependencies’引用了不存在的库 ‘D:\eclipse-bundle\sdk\extras\android\support\v7\appcompat\bin\android-support-v7-appcompat.jar’”
图书馆确实存在,只是不在这个位置。它位于:
D:\eclipse-bundle\sdk\extras\android\support\v7\appcompat\libs\android-support-v7-appcompat.jar
似乎没有任何方法可以编辑此属性。你如何解决这个问题?是什么原因造成的?
在此先感谢您的帮助。
最佳答案
确保按照此步骤添加 .jar 文件。
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.
关于java - 安卓依赖配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19180847/