1.引入aar包
注解:可以在Project的build.Gradle也可以在App的层级下
https://juejin.im/post/582d606767f3560063320b21
https://juejin.im/post/5d9a9ed2f265da5b9f7c5e36
repositories {
flatDir {
dirs 'libs'
}
}
implementation(name:'subsampling-scale-image-view-3.10.0', ext:'aar')
gradle.properties(Global Properties)里面可以设置
KEY_ALIAS sq
KEY_PASSWORD 123456
STORE_FILE_PATH D:/android_keyfile/test_keystory.jks
STORE_PASSWORD 123456
在App层级的Buid.gradle里面
signingConfigs {
release {
keyAlias KEY_ALIAS
keyPassword KEY_PASSWORD
storeFile file(STORE_FILE_PATH)
storePassword STORE_PASSWORD
}
debug {
keyAlias KEY_ALIAS
keyPassword KEY_PASSWORD
storeFile file(STORE_FILE_PATH)
storePassword STORE_PASSWORD
}
}
# 兼容库的版本(Project Properties)
SUPPORT_LIB_VERSION = 28.0.0
api "com.android.support:appcompat-v7:${SUPPORT_LIB_VERSION}"
api 'com.android.support.constraint:constraint-layout:1.1.2'
在app的build.gradle里面引用1.8兰伯特
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}