|
Android studio上开发插件CanUtil, 插件中集成了一个三方的mcCan.aar , 本地功能调试完成后 , 最后在 Build ->Make Module 步骤 编译报异常:
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. Previous versions of the Android Gradle Plugin produce broken AARs in this case too (despite not throwing this error). The following direct local .aar file dependencies of the :CanUtil project caused this error: F:\ApiCloud\PluginsDevProject_Android_1.1.52\PluginsDevProject_Android_1.1.52\androidstudio\AndroidPluginDevSDK_androidStudio\CanUtil\libs\mcCan.aar
下面是CanUtil 的build.gradle 中的 dependencies 配置:
dependencies {
compileOnly fileTree(dir: "libs", include: ["*.jar"])
implementation 'com.android.support:appcompat-v7:28.0.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation files('libs/mcCan.aar')
compileOnly files('../app/libs/apiEngine v3.0.0.jar')
}
请教下改怎么在插件中集成aar 才能正常的Make Module 非常感谢!!!!!
|
|