anybody come across any issues publishing to maven...
# multiplatform
k
anybody come across any issues publishing to maven recently? we have a multi-module setup where our final Android lib – an SDK we’re building – has an implementation dependency on our KMM lib but have just run into this error whenever we try and build an android app that has a dependency on our SDK…
Copy code
Could not resolve all files for configuration ':samples:unflow-compose:debugRuntimeClasspath'.
> Could not resolve com.unflow:unflow:1.0.1.
  Required by:
      project :samples:unflow-compose > com.unflow:unflow-ui:1.0.1
  > Could not determine whether value 7.2.0-alpha02 is compatible with value 7.1.0-beta02 using AgpVersionCompatibilityRule.
    > Using multiple versions of the Android Gradle plugin(7.2.0-alpha02, 7.1.0-beta02) in the same build is not allowed.
👀 1
🙏🏾 1
for context,
unflow-ui
is the one i’m trying to add to a sample app, and
unflow
is the KMM module that it depends on internally (both are published to maven). this was working fine a couple of weeks ago, but i’ve no idea what has changed since then to cause this (could be lots of things) 😬
k
Did You try to first resolve :
Copy code
Using multiple versions of the Android Gradle plugin(7.2.0-alpha02, 7.1.0-beta02) in the same build is not allowed.
k
both the
unflow
module (KMM) and the
unflow-ui
module (our android SDK) are being built using the same version of the gradle plugin and in the same project. this error appears when you try to add the maven dependency to a new project – which we need to support as our lib is an SDK. and it’s not reasonable to require the customer’s app to be on the same AGP version as us. it’s also not something i’ve ever seen before when adding any other library dependencies, so suspect it’s a problem with our publishing setup or KMM tooling.