Closed mfkrause closed 4 years ago
Hi @mfkrause let us quickly try to reproduce this issue. We will get back to you soon with next steps. In the meantime you are more than invited to join our developer slack, where we can give you more adhoc support.
Thanks @mattk90! Just joined the Slack. I'm simultaneously also trying to set-up a minimal reproducible example to help with this.
/edit: Got it I think. Set-up the OneSignal example project according to this documentation ("Running Example Project"): https://documentation.onesignal.com/docs/react-native-sdk-setup Then, simply follow the steps in the Android-specific Passbase docs. Add the npm module, and edit the gradle script according to the docs. The gradle sync then fails for me with the same errors as above.
@mfkrause following is the workaround to fix the conflict caused by both sdks.
Adding resolutionStrategy
to the project level build.gradle
inside the allProjects
block as follows:
allprojects {
repositories {
// other repositories ...
maven { url 'https://maven.google.com' } // THIS ONE ADDED FOR ONE-SIGNAL
google()
jcenter()
maven { url 'https://jitpack.io' }
maven { url 'http://maven.facetec.com' }
}
configurations.all { // THIS BLOCK ADDED FOR ONE-SIGNAL & PASSBASE CONFLICTS
resolutionStrategy {
eachDependency { DependencyResolveDetails details ->
if (details.requested.group == 'com.google.firebase') {
details.useVersion "+"
}
if (details.requested.group == 'com.google.android.gms') {
details.useVersion "+"
}
}
}
}
}
sync
the project and then build
and run
.
Thanks a lot @KamranKhankhail, that indeed fixed it! Works fine now. Closing this.
I'm currently trying to integrate Passbase into our RN app. While iOS worked flawlessly using the documentation, I've been stuck with a Gradle error for the past four hours or so now that I simply cannot seem to fix unfortunately.
We're using React Native 0.61.5 and the latest rn-passbase (master).
I followed the Android-specific instructions from the documentation, and these are the errors I now get with every Gradle sync:
I think I've narrowed this down to the fact that we're using OneSignal as well in our app. When I deactivate the OneSignal gradle wrapper in our gradle scripts, all of the errors pointing to the
com.google.android.gms:play-services
disappear, thecom.google.firebase
errors stay though. I didn't try to fully remove OneSignal yet though (setting OneSignal up in a RN app is a science for itself, so haven't been looking forward to doing this so far), but I'd suppose that all of the errors come fron using OneSignal and Passbase together.This is our root
build.gradle
:And this is the
build.gradle
from the:app
module:I've already tried every single solution from StackOverflow and GitHub issues from the OneSignal repos - disabling the Google Play services version check, changing the order of some implementations, etc... - to no avail.
Could anyone help with this?