Trying to enable compose in my project (I'm not actually using it anywhere!) and I've been waiting for alpha08 because of kotlin 1.4.20 support and this is the error I get:
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-alpha08) expects a minimum runtime version of 1.0.0-alpha08.
Anyone else get this?
This is all I'm adding to my app level build.gradle
and it worked.Someone should really clarify in the "Add Jetpack Compose to an existing project" what is mandatory and what's not 😄https://developer.android.com/jetpack/compose/setup#add-composeIt tells you have to configure kotlin, and gradle, but the toolkit dependencies seem optional. tooling previews, material, etc. No mention of
@jim you fixed it!!! Thank you thank you thank you. We've been wanting to add compose to our project for what feels like months... but could never even simply enable it. Now we'll be able to. Can't wait to try the snapshot/alpha09!!! ❤️
@jim just used a snapshot that became available.Compose works. finally. and it's beautiful 😭