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.
我想找出最好的方法,以便使用 Gradle 生成一个包含所有由 maven 解析的依赖项的 Android 库 AAR 存档,因此应用程序不必包含这些依赖项,只需导入 AAR,一切都由安卓库。
jar 应该由 Gradle 任务放置在 AAR libs/ 目录中。
在新的 AAR 系统之前,我正在这样做,使用包含多个源集的 JAR,只是因为无法组装二进制 android 库。