java.lang.NoSuchMethodError after upgrading Jetpack Compose to 1.0.0‑beta07 java.lang.NoSuchMethodError after upgrading Jetpack Compose to 1.0.0‑beta07 android android

java.lang.NoSuchMethodError after upgrading Jetpack Compose to 1.0.0‑beta07


Anyone using Navigation with compose should also update the navigation library to the latest available version.

In my case, I was using

    implementation "androidx.navigation:navigation-compose:1.0.0-alpha10"

and had to replace with

    implementation "androidx.navigation:navigation-compose:2.4.0-alpha01"


Your runtime-livedata dependency is outdated:

implementation 'androidx.compose.runtime:runtime-livedata:1.0.0-beta06'

You should update that to use the same version as the rest of your Compose dependencies:

implementation "androidx.compose.runtime:runtime-livedata:$compose_version"

Which would be effectively:

implementation 'androidx.compose.runtime:runtime-livedata:1.0.0-beta07'


What worked for me was updating to

implementation("androidx.hilt:hilt-navigation-compose:1.0.0-alpha02")

and

implementation("com.google.accompanist:accompanist-swiperefresh:0.10.0")