1、将aar包考入需要依赖的模块的libs目录下

 

2、在需要依赖的模块的build.gradle中添加如下内容:

dependencies {
    compile(name:'aar包名不带扩展名', ext:'aar')
}

repositories {
    flatDir() {
        dirs 'libs'
    }
}

 

3、sync项目,完工

相关文章:

  • 2021-08-24
  • 2021-08-31
  • 2022-12-23
  • 2022-02-01
  • 2022-12-23
猜你喜欢
  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
  • 2021-09-22
  • 2022-12-23
  • 2021-04-25
相关资源
相似解决方案