- IS anyone else getting: ```Duplicate class andr...
# compose
a
• IS anyone else getting:
Copy code
Duplicate class androidx.compose.animation.AlignmentBasedSizeAnimation found in modules animation-1.0.0-alpha11-runtime (androidx.compose.animation:animation:1.0.0-alpha11) and animation-debug-runtime (org.jetbrains.compose.animation:animation-android-debug:0.3.0-build141)
????
j
Jetbrains publishes the same binaries but with different version numbers, so anything in the Compose/Google maven repository should also be available via the Jetbrains repository under a different artifact name/version.
a
uhmmm
I',m using a MPP library, so i should use all components from jetbrains?
j
all of your Compose dependencies should be the ones published by Jetbrains, yes. Jetbrains does releases more frequently than we do, so they already have more up-to-date binaries.
a
uhmmm
how can i setup it on a simple android project, then? :S
j
on a simple android non-mpp project? Or a simple android project using MPP?
a
second one
j
Have you seen: https://github.com/JetBrains/compose-jb/tree/master/examples/imageviewer It has an example MPP project that builds for both Desktop and Android.
a
In fact, it's a simple android, using google libs, with one dependency that is mpp
(m own dep)
j
In fact, it's a simple android, using google libs, with one dependency that is mpp
Sorry, I'm not sure I understand, can you elaborate a bit more?
a
Android app that uses google compose dependencies. It uses a library that is built with jetbrain compose dependencies
j
Yeah, that is tricky at the moment, especially since the jetbrains and google builds are slightly time dilated. I think there is a way to force gradle to satisfy some dependencies using a different artifact, which may work for you (you could force android to use the android-variants published by jetbrains, or force the mpp library to consume the google binaries), but it would be a little hacky in the short term.  We are working on a better long-term solution, but that is probably at least six months out.
a
Ouch
as it's a library for developers, i can wait for it