From 33125b240cede39efd10b66ef86306b955fccc86 Mon Sep 17 00:00:00 2001 From: leeyi Date: Fri, 9 Aug 2024 11:34:18 +0800 Subject: [PATCH 1/2] fix Message "error: resource android:attr/lStar not found" --- android/build.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index b3ee973..3041ab2 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -2,7 +2,7 @@ group 'com.example.imagegallerysaver' version '1.0-SNAPSHOT' buildscript { - ext.kotlin_version = '1.7.10' + ext.kotlin_version = '1.9.25' repositories { google() mavenCentral() @@ -25,13 +25,13 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { - compileSdkVersion 30 + compileSdkVersion 31 sourceSets { main.java.srcDirs += 'src/main/kotlin' } defaultConfig { - minSdkVersion 16 + minSdkVersion 23 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } lintOptions { From 1200d0775dfa85a100d0a5021fedec38e8202679 Mon Sep 17 00:00:00 2001 From: leeyi Date: Sun, 25 Aug 2024 13:33:21 +0800 Subject: [PATCH 2/2] Support "Upgrade to gradle to 8.7" --- android/build.gradle | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 3041ab2..8f39df3 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -9,7 +9,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:7.3.0' + classpath 'com.android.tools.build:gradle:8.5.2' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } @@ -25,7 +25,8 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { - compileSdkVersion 31 + namespace "com.example.imagegallerysaver" + compileSdkVersion 34 sourceSets { main.java.srcDirs += 'src/main/kotlin' @@ -34,6 +35,11 @@ android { minSdkVersion 23 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } + compileOptions { + sourceCompatibility JavaVersion.VERSION_17 + targetCompatibility JavaVersion.VERSION_17 + } + lintOptions { disable 'InvalidPackage' }