From c0de65fc019cb9c685331df18e62b5780da7ff5f Mon Sep 17 00:00:00 2001 From: yimiao Date: Fri, 30 Jul 2021 14:31:39 +0800 Subject: [PATCH] =?UTF-8?q?author:wangyimiao=20desc:=E6=9B=B4=E6=96=B0grad?= =?UTF-8?q?le=E4=B8=BA7.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 13 +++++-------- build.gradle | 3 +-- commonLib/build.gradle | 4 ++-- commonLibConfig.gradle | 4 ++-- 4 files changed, 10 insertions(+), 14 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 1db9f5a..a7c80b8 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -26,16 +26,13 @@ android { } } compileOptions { - sourceCompatibility JavaVersion.VERSION_11 - targetCompatibility JavaVersion.VERSION_11 + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 } - dataBinding { - enabled = true - } - - viewBinding { - enabled = true + buildFeatures { + dataBinding true + viewBinding true } } diff --git a/build.gradle b/build.gradle index 4e4a564..f65671b 100644 --- a/build.gradle +++ b/build.gradle @@ -1,14 +1,13 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. apply from: "commonLibConfig.gradle" buildscript { - ext.kotlin_version = "1.5.21" repositories { google() mavenCentral() } dependencies { 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 // in the individual module build.gradle files } diff --git a/commonLib/build.gradle b/commonLib/build.gradle index 68b6d63..c90e11a 100644 --- a/commonLib/build.gradle +++ b/commonLib/build.gradle @@ -30,8 +30,8 @@ android { } } compileOptions { - sourceCompatibility JavaVersion.VERSION_11 - targetCompatibility JavaVersion.VERSION_11 + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 } androidExtensions { diff --git a/commonLibConfig.gradle b/commonLibConfig.gradle index faa5d09..3ca5949 100644 --- a/commonLibConfig.gradle +++ b/commonLibConfig.gradle @@ -15,8 +15,8 @@ ext { ] compileOptions = [ - sourceCompatibility: JavaVersion.VERSION_11, - targetCompatibility: JavaVersion.VERSION_11, + sourceCompatibility: JavaVersion.VERSION_1_8, + targetCompatibility: JavaVersion.VERSION_1_8, ] versions = [