Android Studio build.gradle配置
引入jar/aar包方式
implementation files('libs/xxx.aar')
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation fileTree(dir: 'libs', include: ['*.aar', '*.jar'], exclude: [])
依赖本地模块
implementation project(":umeng")
依赖maven库
implementation "com.github.bumptech.glide:glide:4.9.0"
修改jniLibs目录为libs
sourceSets {
main {
jniLibs.srcDirs = ['libs']
}
}
详细gradle配置 https://juejin.cn/post/6927295018864640007