I was updating to the latest jetpack compose navig...
# compose
j
I was updating to the latest jetpack compose navigation dependency by including this line,
implementation "androidx.navigation:navigation-compose:2.4.0-alpha08"
in my build.gradle. Sync works fine, but when I try to build, I get this error (in thread) stating that min sdk is not 31. I'm a bit confused by this since sdk 31 is android 12, which hasn't come out yet? Edit: Resolved!
Copy code
The minCompileSdk (31) specified in a
dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
is greater than this module's compileSdkVersion (android-30).
Dependency: androidx.navigation:navigation-common-ktx:2.4.0-alpha08.
AAR metadata file: /home/jay/.gradle/caches/transforms-3/48285341bd595682bc0d071126012b04/transformed/navigation-common-ktx-2.4.0-alpha08/META-INF/com/android/build/gradle/aar-metadata.properties.
For the meantime, I've downgraded back to
2.4.0-alpha07
m
need change your gradle with the last version
Copy code
const val sdkVersion = 31
const val buildVersion = "31.0.0"
j
Thank you, can't believe i forgot that!