diff --git a/android/gradle.properties b/android/gradle.properties index 1f8a3781..802fd3ce 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -1,8 +1,7 @@ org.gradle.jvmargs=-Xmx1536M android.useAndroidX=true android.enableJetifier=true -kotlin.jvm.target.validation.mode = IGNORE -# This builtInKotlin flag was added automatically by Flutter migrator -android.builtInKotlin=false -# This newDsl flag was added automatically by Flutter migrator -android.newDsl=false +# Third-party plugins (e.g. receive_sharing_intent) mix Java 1.8 and Kotlin 18 +# targets, which AGP flags as an error by default. Downgrade to a warning so +# the build proceeds. +kotlin.jvm.target.validation.mode=warning diff --git a/android/settings.gradle b/android/settings.gradle index e14c0beb..11a11666 100644 --- a/android/settings.gradle +++ b/android/settings.gradle @@ -18,8 +18,8 @@ pluginManagement { plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.0" - id "com.android.application" version "8.11.1" apply false - id "org.jetbrains.kotlin.android" version "2.2.20" apply false + id "com.android.application" version "8.11.0" apply false + id "org.jetbrains.kotlin.android" version "2.2.0" apply false } include ":app" \ No newline at end of file