From 5a318deb403a6e3b2f3d3def0daee40acc71880c Mon Sep 17 00:00:00 2001 From: jbibik Date: Tue, 26 Mar 2024 12:40:05 -0700 Subject: [PATCH] Downgrade kotlin plugin version to 1.9.0 Earlier upgrade in https://github.com/androidx/media/commit/276e0655f477dd108d8d3a6ac5a5f403ee2a1c4b was too high, since Android Studio Iguana is still bundled with Kotlin plugin with version `232-1.9.0-release-358-AS10227`. The result of the mismatched plugin is a build failure like: `Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is XXX` Although according to https://plugins.jetbrains.com/plugin/6954-kotlin, the 1.9.23 is already available. So we will be able to upgrade again soon. Version 1.9.0 is still good enough for the compose compiler to be 1.5.0+ according to https://developer.android.com/jetpack/androidx/releases/compose-kotlin#pre-release_kotlin_compatibility PiperOrigin-RevId: 619278402 --- build.gradle | 2 +- constants.gradle | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 753ff17cbf..8f2a92ca82 100644 --- a/build.gradle +++ b/build.gradle @@ -19,7 +19,7 @@ buildscript { dependencies { classpath 'com.android.tools.build:gradle:8.0.1' classpath 'com.google.android.gms:strict-version-matcher-plugin:1.2.4' - classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.22' + classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0' } } allprojects { diff --git a/constants.gradle b/constants.gradle index db7f9e82bb..07476a72c6 100644 --- a/constants.gradle +++ b/constants.gradle @@ -35,7 +35,7 @@ project.ext { checkerframeworkVersion = '3.13.0' errorProneVersion = '2.18.0' jsr305Version = '3.0.2' - kotlinAnnotationsVersion = '1.9.22' + kotlinAnnotationsVersion = '1.9.0' // Updating this to 1.4.0+ will import Kotlin stdlib [internal ref: b/277891049]. androidxAnnotationVersion = '1.3.0' androidxAnnotationExperimentalVersion = '1.3.1'