Closed davidhartley closed 3 years ago
š hi @davidhartley, can you please share with us what your environment looks like so we can look into replicating this:
This looks to be an issue with the buildScript
classpath using an older version of Moshi. It will affect anyone using bugsnag-android-gradle-plugin
v5.8.0 or v7.1.0, and a plugin that uses Moshi versions <= 1.9.0.
A workaround is to force the Moshi version used to a more recent version. This should preferably be done by updating the other plugin using the outdated version of Moshi - performing a gradle build scan and looking at the build dependencies should allow the offending plugin to be identified.
Alternatively, making the following modifications to the project build.gradle
would resolve the issue:
dependencies {
classpath "com.android.tools.build:gradle:4.2.2"
classpath "com.bugsnag:bugsnag-android-gradle-plugin:5.8.0"
classpath "com.squareup.moshi:moshi:1.9.3"
}
configurations.classpath {
resolutionStrategy {
force "com.squareup.moshi:moshi:1.9.3"
}
}
We'll take a look into a resolution that will allow this to play nicely in future.
Hey @davidhartley - this is now fixed in v5.8.1
When assembling release, gradlew fails with the following. Error is super unclear until you add --stacktrace
Falling back to 5.7.8 fixed the issue though we had 5+ originally so it took a bit of detective work to figure out what changed.