方法一
直接從maven庫添加
repositories {
maven { url '********************' }
}
dependencies {
// Type 1: depend on maven server version
implementation '***************************'
}
方法二
在項目的lib添加aar包,再引入
dependencies {
// Type 2: depend on local libs
implementation(name: '***************', ext: 'aar')
}
方法三
項目同時包含library和demo時,demo引用library
dependencies {
// Type 3: depend on source version
implementation project(':')
}