报错:
Execution failed for task ':app:dataBindingMergeDependencyArtifactsDebug'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find :MiPush_SDK_Client_5_1_0-C_3rd:.
一、module中,
dependencies {
//小米推送
implementation(name:'MiPush_SDK_Client_5_1_0-C_3rd',ext:'aar')
...
}
二、主app的build.gradle中:
repositories {
flatDir {
dirs '../pushmessage/libs'
}
}
dependencies {
//引入组件pushmessage
implementation project(path: ':pushmessage')
...
}
这样,就把"小米推送"隔离在单个module中完成了解耦。
但是如果要单独提供arr供其他人使用,文件介绍的不适用,只适用团队内开发。