报错:

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供其他人使用,文件介绍的不适用,只适用团队内开发。

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐