author:wangyimiao

desc:更新gradle为7.0
master
yimiao 3 years ago
parent a1c73fd46f
commit c0de65fc01

@ -26,16 +26,13 @@ android {
} }
} }
compileOptions { compileOptions {
sourceCompatibility JavaVersion.VERSION_11 sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_1_8
} }
dataBinding { buildFeatures {
enabled = true dataBinding true
} viewBinding true
viewBinding {
enabled = true
} }
} }

@ -1,14 +1,13 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules. // Top-level build file where you can add configuration options common to all sub-projects/modules.
apply from: "commonLibConfig.gradle" apply from: "commonLibConfig.gradle"
buildscript { buildscript {
ext.kotlin_version = "1.5.21"
repositories { repositories {
google() google()
mavenCentral() mavenCentral()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:7.0.0' classpath 'com.android.tools.build:gradle:7.0.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.20"
// NOTE: Do not place your application dependencies here; they belong // NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files // in the individual module build.gradle files
} }

@ -30,8 +30,8 @@ android {
} }
} }
compileOptions { compileOptions {
sourceCompatibility JavaVersion.VERSION_11 sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_1_8
} }
androidExtensions { androidExtensions {

@ -15,8 +15,8 @@ ext {
] ]
compileOptions = [ compileOptions = [
sourceCompatibility: JavaVersion.VERSION_11, sourceCompatibility: JavaVersion.VERSION_1_8,
targetCompatibility: JavaVersion.VERSION_11, targetCompatibility: JavaVersion.VERSION_1_8,
] ]
versions = [ versions = [

Loading…
Cancel
Save