一、编译生成AAR文件

二、把AAR文件复制到项目的libs目录下

三、在项目的配置文件中加入如下代码:

android {
    //other code

    repositories{
        flatDir{
           dirs 'libs'
        }
    }
}

dependencies{
    //other code  
    compile(name:'libName',ext:'aar')
}

 

相关文章:

  • 2021-04-24
  • 2022-03-02
  • 2021-05-06
  • 2021-08-28
  • 2022-12-23
  • 2021-05-19
  • 2022-12-23
猜你喜欢
  • 2021-05-31
  • 2021-09-12
  • 2021-09-15
  • 2022-12-23
  • 2022-12-23
  • 2021-05-21
  • 2022-12-23
相关资源
相似解决方案