Android Studio添加aar依赖的两种方式

1

android{
repositories {
flatDir {
dirs 'libs'
}
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation (name: 'barcode_scanner_library_v2.3.2.0', ext: 'aar')
}

  

2. Simple

android{
//不用写
/* repositories {
flatDir {
dirs 'libs'
}
}*/
}
dependencies {
  将
implementation fileTree(dir: 'libs', include: ['*.jar'])
改为
implementation fileTree(dir: 'libs', include: ['*.jar','*.aar'])
}

  

上一篇:用PowerShell批量部署wsp包


下一篇:不直接登录SharePoint服务器,通过远程直接部署WSP解决方案包