I just upgraded AGP to 7.1.3 and Compose 1.0.5 no ...
# android
a
I just upgraded AGP to 7.1.3 and Compose 1.0.5 no longer works saying
This version (1.0.5) of the Compose Compiler requires Kotlin version 1.5.31 but you appear to be using Kotlin version 1.6.0
But my root
build.gradle
specifies
ext.kotlin_version = '1.5.31'
. Am I missing something?
f
The error says it all really - Compose versions and Kotlin versions have a list of compatibility: https://developer.android.com/jetpack/androidx/releases/compose-kotlin So if you're using 1.6, you need to be on 1.1.0 compose at least
☝️ 1
a
@f.babic i got that. My issue is i I haven’t explicitly upgraded to Kotlin 1.6. Did the AGP upgrade do it for me. I have
ext.kotlin_version = '1.5.31'
on my root
build.gradle
file .
f
oooh okay, it might be that the AGP is just pushing you to use something that's of a higher version - sometimes when you upgrade stuff in Android Studio, it automatically adds these kotlin version lines randomly, so just check that it hasn't happened in your case!
a
@f.babic checked all build and property files. Nothing
Just tried cleaning and rebuilding. Same issue!
f
Can you check the project settings for the version and/or if any libraries might be pushing this for you somewhere
e
check
./gradlew buildEnvironment
and if that doesn't show the Kotlin Gradle plugin version then check
../gradlew dependencies
inside
buildSrc
a
@ephemient i get things like
org.jetbrains.kotlin:kotlin-stdlib:1.5.0 -> 1.6.0
what do those mean?
e
look around, it means you have some plugin or buildscript classpath dependency which is forcing a newer kotlin version
a
@ephemient that might be it i have updated a lot of libraries. Thanks for the tip!