is the Hot Reload plugin not compatible with non-M...
# compose
a
is the Hot Reload plugin not compatible with non-Multiplatform Android projects? I am trying to add a CMP module in a Android app (built using Android Studio) and I try to do
./gradlew run
when i add the hot reload plugin i get:
Copy code
e: Unsupported plugin option: androidx.compose.compiler.plugins.kotlin:generateFunctionKeyMetaAnnotations=true
when i remove the hot reload plugin, i can run the jvm target w/o a problem cc @Sebastian Sellmair [JB] @zsmb
s
Probably this indicates that the Kotlin/Compose compiler used by the project is too old. Hot Reload requires Kotlin 2.1.20 or higher (but then any Kotlin version should be good)
a
will give it a go. thanks
that was it. using 2.1.20 made it work beautifully
🎉 1
s
From there, newer versions of Kotlin might improve your experience, but we really work hard to keep a generic compatibility. So again, any Kotlin version higher than this is expected to work and newer versions might contain some fixes and improvements for hot reload 🙇
a
It's not really a problem tbh. I understand that when I update stuff, some dependencies might not be compatible. BUT, the thing that kills me everytime is trying to figure out how to move forward. If you could print more expressive errors, on how to recover from errors it would help a lot. ie in this case if I had a log saying that 'Unsupported plugin option, consider updating to Kotlin xyz' or that the option was added at kotlint xyz, would speed things up a lot
s
I get you, however we really just want to be compatible so the effort went into compatibility and not into the diagnostic for pre 2.1 Kotlin versions. It would be certainly a welcome contribution, though!
So in case someone reading and wanting to pick this up as open source contribution, feel welcome: https://github.com/JetBrains/compose-hot-reload I would also offer myself to guide through the process
z
I was going to immediately suggest improving the error too, but given that 2.1 is from a year ago and it's when Hot Reload started, I think it's okay in this case. If we drop compatibility for any other version in the future, then I'd expect errors for existing users.
âž• 4