Skip to content

Commit 856f740

Browse files
committed
feat: Upgrade Android Gradle tools and set Java 11
Upgrades the Android Gradle Plugin from 7.4.2 to 8.5.1 and the Gradle wrapper from 8.12 to 8.13. Sets the Java compatibility to version 11 in the Android build configuration. Fixed: #1888
1 parent 9451206 commit 856f740

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

android/build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ buildscript {
1111
}
1212

1313
dependencies {
14-
classpath 'com.android.tools.build:gradle:7.4.2'
14+
classpath 'com.android.tools.build:gradle:8.5.1'
1515
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1616
}
1717
}
@@ -38,6 +38,11 @@ android {
3838
disable 'InvalidPackage'
3939
}
4040

41+
compileOptions {
42+
sourceCompatibility JavaVersion.VERSION_11
43+
targetCompatibility JavaVersion.VERSION_11
44+
}
45+
4146
dependencies {
4247
implementation 'androidx.core:core:1.15.0'
4348
implementation 'androidx.annotation:annotation:1.9.1'

example/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-all.zip

example/android/settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pluginManagement {
1919

2020
plugins {
2121
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
22-
id("com.android.application") version "8.9.1" apply false
22+
id("com.android.application") version "8.13.1" apply false
2323
id("org.jetbrains.kotlin.android") version "2.1.0" apply false
2424
}
2525

0 commit comments

Comments
 (0)