You can put the following code in your top-level build.gradle.kts file:
subprojects {
configurations.all {
resolutionStrategy {
force("androidx.navigation:navigation-compose:2.8.9")
}
}
}
This way hilt navigation will use a newer version of navigation-compose