I keep getting this but I'm not sure why: ```e: an...
# compose
g
I keep getting this but I'm not sure why:
Copy code
e: androidx.compose.compiler.plugins.kotlin.IncompatibleComposeRuntimeVersionException: You are using an outdated version of Compose Runtime that is not compatible with the version of the Compose Compiler plugin you have installed. The compose compiler plugin you are using (version 1.0.0-alpha07) expects a minimum runtime version of 1.0.0-alpha07. The version of the runtime on the classpath currently is 0.1.0-dev16.
my versions are all the same
Copy code
const val COMPOSE_VERSION = "1.0.0-SNAPSHOT"
implementation("com.github.skydoves:landscapist-glide:1.0.7")
implementation("androidx.navigation:navigation-compose:$COMPOSE_VERSION")
implementation("androidx.compose.runtime:runtime-livedata:$COMPOSE_VERSION")
implementation("androidx.compose.material:material:$COMPOSE_VERSION")
implementation("androidx.compose.ui:ui:$COMPOSE_VERSION")
implementation("androidx.ui:ui-tooling:$COMPOSE_VERSION")
and it's from a snapshot
maven("<https://androidx.dev/snapshots/builds/6924113/artifacts/repository>")
l
@Gabriel Not using the snapshot and using the latest released version should do.
g
I'm using the snapshot for doing navigation with args
a
What's the output of
./gradlew app:dependencies
?
g
@Afzal Najam it's very long, is there a certain bit you want?
a
well, that should help you find what's importing the wrong runtime version, shouldn't it?
g
Nothing seems to referencing
0.1.0-dev16
directly
com.github.skydoves:landscapist-glide:1.0.7
seems to want
androidx.compose.runtime:runtime:1.0.0-alpha05
I don't know if that could be it
a
You can force a version using the force argument on a dependency:
Copy code
implementation("some:dependency") {
    version {
            strictly 'someVersion'
        }
}
g
Copy code
implementation("androidx.compose.runtime:runtime:$COMPOSE_VERSION") {
	version {
		this.strictly(COMPOSE_VERSION)
	}
}
It works!
Thank you @Afzal Najam
👍 1
e
Navigation is released in latest alpha, you can probably switch 👍🏼
👍 1
g
Woo!!