Justin Yue

    Justin Yue

    1 year ago
    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!
    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
    mario

    mario

    1 year ago
    need change your gradle with the last version
    const val sdkVersion = 31
    const val buildVersion = "31.0.0"
    Justin Yue

    Justin Yue

    1 year ago
    Thank you, can't believe i forgot that!
    Colton Idle

    Colton Idle

    1 year ago