【发布时间】:2021-04-14 14:16:42
【问题描述】:
我想将 android 库构建为 AAR 文件,其中包含输出 AAR 文件中的依赖项。它使用另一个 AAR 文件作为 libs 文件夹的依赖项。
构建库显示此错误:
Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from any local .aar file dependencies would not be packaged in the resulting AAR.
构建命令有效,但它不包括 classes.jar 中的外部库
我的 proguard-rules.pro 文件是
-dontwarn javax.annotation.Nullable
-dontwarn com.facetec.sdk.**
-keep class com.facetec.sdk.** { *; }
我也尝试使用https://github.com/kezong/fat-aar-android 库并导入 facetec-sdk 模块作为嵌入项目,但构建命令显示 lint 错误
【问题讨论】: