java - 安卓依赖配置

标签 java android eclipse dependencies

我在这里浏览 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/

相关文章:

java - 应用程序在 Socket 连接时崩溃

java - com.sun.mail.smtp.SMTPAddressFailedException

Eclipse 调试器 : Variable view when using nested Java HashMap, ArrayList

android - 在不同位置应用不同命令

android - SSLHandshakeException 云端点客户端库

eclipse - 使用 Guice/Peaberry 进行 osgi 声明性服务

java - 执行外部Java代码并获取输出

java - 我可以让 @BeforeTest 和 @AfterTest 仅针对一组测试运行吗?

android - 如何使 ClipPath 的背景透明?

android - 在 Android 上,我应该/可以使用一个单例 Gson 对象而不是到处调用 new Gson() 吗?