Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
再会。我有使用 android-support-v4.jar lib 的 android SDK 项目。我有这个项目的 SVN。我在 Ubuntu 和 Mac Os Eclipse 上编写代码。所以这个库的路径对于 Mac os 和 Ubuntu 是不同的。在 Ubuntu 上一切正常,但是当我在 Mac 上从 SVN 签出项目并尝试在 Java 构建路径中更改此库的路径时,它总是给我一个错误:在“设置构建路径”期间发生内部错误。我需要做什么才能让它工作?
使用 Eclipse 的工具“添加支持库”。右键单击您的项目,它应该位于菜单的下部,可能在“Android 工具”中。
这将在您的构建路径中包含 .jar 并且(希望)将在类路径中设置一个相对路径,以便它不依赖于机器。
我建议删除您事先放置在项目中的 android-support-v4.jar,只是为了让 Eclipse 更简单。