Just noticed that the alpha version of Compose enf...
# compose
v
Just noticed that the alpha version of Compose enforces a minCompileSdk of 31. Do we know if the stable version of Compose is also going to enforce this soon (my guess is that it probably will). The main reason we were trying to use alpha was because we wanted to leverage Kotlin 1.5.30.
z
I believe so, yes. Note that this is just the min compile version, it’s not target or min supported sdk version.
v
yup still causes a build failure so we were wondering why this is enforced so strictly given API 31 is still in beta.
h
i
Yep, API 31 has been finalized for quite some time now - you'll note that every AndroidX release compiles with API 31 now
v
I guess I need to step out of my rock 😄
a
what kind of build failure are you seeing?
v
Copy code
A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
[2021-09-15T06:12:40Z]    > The minCompileSdk (31) specified in a
[2021-09-15T06:12:40Z]      dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
[2021-09-15T06:12:40Z]      is greater than this module's compileSdkVersion (android-30).
[2021-09-15T06:12:40Z]      Dependency: androidx.compose.foundation:foundation:1.1.0-alpha03.
[2021-09-15T06:12:40Z]      AAR metadata file: /root/.gradle/caches/transforms-3/9173d0c5f8b12286fd4d73b5b01ba0d8/transformed/foundation-1.1.0-alpha03/META-INF/com/android/build/gradle/aar-metadata.properties
h
You just have to increase your compileSdkVersion to 31.
1