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'
implementation 'androidx.core:core:1.0.1'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.annotation:annotation:1.0.1'
implementation 'com.google.android.material:material:1.1.0-alpha02'
}