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 项目。
我想设置 ant 以在所有三个项目中重用外部库文件夹。
我试图在 ant.properties 中添加以下行: jar.libs.dir=../libs
但它没有任何效果,仍然会出现 jar 类未创建的错误。
最后,我将所有 jar 放入项目默认 libs 文件夹中。Android 正确地合并了库项目中的重复库。
PS:但是如果库项目位于单独的存储库中,这仍然很痛苦。