安卓Gradle配置

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
 }

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值