gradle.properties
android.useAndroidX = true
android.enableJetifier = true
build.gradle
buildscript {
repositories {
google()
jcenter()
maven {url 'http://developer.huawei.com/repo/'}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
maven {url 'http://developer.huawei.com/repo/'}
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
app build.gradle
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "androidx.multidex:multidex:2.0.0"
implementation 'androidx.appcompat:appcompat:1.0.2'
implement
版权声明:本文为yueqinglkong原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。