I would like to share UI between Android and Deskt...
# compose-desktop
k
I would like to share UI between Android and Desktop, so I created a separate module, I changed dependencies from
androidx.compose
to
org.jetbrains.compose
and tried to compile. So far everything works as expected, it compiles and Android app is running, however IDE doesn’t recognize Compose dependencies. I’m using IntelliJ IDEA 2022.2.1 (Community Edition). Is there anything I’m missing?
l
This is a bug in the Android Gradle Plugin that went with Chipmunk (7.2.x). You have to use Android Studio Dolphin (7.3.x) or higher for now.
k
Thanks, I had to switch straight to Electric Eel and 7.4.0-beta01 Android Gradle Plugin version, but it worked 🙂 On Dolphin and 7.3.x there was the same issue
l
Interesting. I’m not seeing any issues currently on Dolphin, but I’ll have to be on the lookout to see if this changes. Either way, Eel should be good.
k
Maybe the root cause in my case was different, I don’t know 🙂 anyway thanks for the tip