1. 引用jar:
1.1 拷贝xx.jar到libs目录
1.2 build.gradle里面:
dependencies {
implementation files('libs/xx.jar')
}
2. 引用arr文件
2.1 拷贝xx.arr到libs目录
2.2
dependencies {
implementation(name: 'xx', ext: 'aar')
}
3. 引用开源库
dependencies {
implementation "io.reactivex.rxjava2:rxjava:2.1.8"
}
4.引用工程
4.1 拷贝工程目录xxx到app同级别目录下
4.2
dependencies {
implementation project(':xxx')
}