Closed Galahand closed 4 years ago
@Galahand Can you try removing this section in your root build.gradle
?
subprojects {
project.evaluationDependsOn(':app')
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex') ) {
details.useVersion "27.1.0"
}
}
}
}
The project.evaluationDependsOn(':app')
line is most likely changing the order for resolution. Also the resolutionStrategy.eachDependency
could also be affecting the order. The com.android.support
version overriding you have to 27.1.0
can create issues with AndroidX so I also recommend removing it for this reason. This plugin also takes care of the alignment it is trying to do anyway.
The runtime crash is due to firebase-iid
being updated to a version newer than firebase-messaging
will work with as seen from your log.
+--- com.onesignal:OneSignal:3.11.4
| +--- com.google.firebase:firebase-messaging:[10.2.1, 12.1.0) -> 15.0.2
...
| | | | +--- com.google.firebase:firebase-iid:17.1.2 -> 18.0.0
This plugin should take care of this however the subprojects { }
block you have above is probably changing the order of resolution.
Since there is a lot of variables here can you attach an example flutter project reproducing the issue?
As a quick work around you can try updating firebase-messaging
to match firebase-iid
which is 18.0.0
. Due note that when OneSignal or other plugins are updated you will most likely have to bump the version as you may see a crash again. To avoid this sending us a project reproducing the issue is going to be key.
Closing due to inactivity
Description
I have a flutter project and i'm using the OneSignal SDK, i read that adding 'com.onesignal.androidsdk.onesignal-gradle-plugin' would fix the problem, but the problem is still there for me.
Project Setup
build.gradle
app/build.gradle
Full Error
Dependency Tree
Run
./gradlew app:dependencies