Closed salmatarzi closed 5 years ago
Using implementation "com.google.firebase:firebase-messaging:17.3.3"
got rid of this error for me
Hello π, this issue has been automatically marked as stale because it has not had activity for quite some time. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions.
Closing this issue after a prolonged period of inactivity. If this is still present in the latest release, please feel free to create a new issue with up-to-date information.
Using
implementation "com.google.firebase:firebase-messaging:17.3.3"
got rid of this error for me
This is still the case for me after 17.5.0
I'm still facing this issue for com.google.firebase:firebase-messaging:17.5.0
The error:
The library com.google.firebase:firebase-iid is being requested by various other libraries at [[17.1.1,17.1.1]], but resolves to 17.0.3. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.
The library com.google.firebase:firebase-iid is being requested by various other libraries at [[17.0.4,17.0.4]], but resolves to 17.1.1. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.
yap, same error appears using com.google.firebase:firebase-messaging:17.5.0
According to the react-native-firebase docs, I was also using com.google.firebase:firebase-messaging:17.5.0
But when I changed to com.google.firebase:firebase-messaging:17.3.3
, the sync succeeded.
There must be some other library you are using that is not respecting the versions, as I am using the most current (17.6.0 right now) and it works fine.
There must be some other library you are using that is not respecting the versions, as I am using the most current (17.6.0 right now) and it works fine.
I will try with 17.6.0 since we're facing this issue with 17.5.0
Try altering react-native-firebase
version too.
I had same issue with following combination.
react-native-firebase 5.3.2
com.google.firebase:firebase-messaging:17.3.4
com.google.firebase:firebase-invites:16.0.6
com.google.android.gms:play-services-base:16.0.1
com.google.firebase:firebase-core:16.0.6
got it worked by just downgrading react-native-firebase to 5.2.3
I solved it by using com.google.firebase:firebase-messaging:17.6.0
. Thanks.
Worked for me with this combination
"react-native-firebase": "5.2.1",
in build.gradle:
implementation "com.google.android.gms:play-services-base:16.0.1"
implementation "com.google.firebase:firebase-core:16.0.6"
implementation "com.google.firebase:firebase-messaging:17.3.4"
This is my build.gradle file:-------
apply plugin: 'com.android.application' apply plugin: 'io.fabric' repositories { maven { url 'https://maven.fabric.io/public' } } android {
compileSdkVersion 28
//buildToolsVersion '28.0.3'
defaultConfig {
applicationId "in.winni.app"
minSdkVersion 16
targetSdkVersion 28
versionCode 113
versionName "3.6.3.0"
multiDexEnabled true
}
dexOptions {
javaMaxHeapSize "4g"
}
repositories {
mavenCentral()
maven {
url 'https://maven.google.com/'
}
flatDir {
dirs 'libs'
}
}
buildTypes {
debug {
debuggable true
}
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
//noinspection GradleCompatible
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
// Add dependency
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.android.support:animated-vector-drawable:28.0.0'
implementation 'com.hbb20:ccp:2.2.2'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation "com.squareup.picasso:picasso:2.4.0"
implementation 'com.android.volley:volley:1.1.0'
implementation 'com.github.bumptech.glide:glide:3.5.2'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.nineoldandroids:library:2.4.0'
implementation 'com.daimajia.slider:library:1.1.5@aar'
implementation 'com.webengage:android-sdk:3.+'
implementation 'com.google.android.gms:play-services-analytics:16.0.6'
implementation 'com.google.firebase:firebase-core:16.0.6'
implementation 'com.google.firebase:firebase-messaging:17.3.4'
implementation 'com.google.android.gms:play-services-ads:15.0.1'
implementation 'com.google.android.gms:play-services-gcm:15.0.1'
implementation 'com.pnikosis:materialish-progress:1.7'
implementation('com.crashlytics.sdk.android:crashlytics:2.9.5@aar') {
transitive = true;
}
// Add dependency
testImplementation 'junit:junit:4.12'
implementation project(":notifyvisitors")
}
apply plugin: 'com.google.gms.google-services'
I am also facing same issue.please give me any solutions
add firebase messaging library can fix this problem.
implementation 'com.google.firebase:firebase-messaging:20.1.0'
Issue
π₯ This issue is happening to me on Android. I always get this error when syncing the gradle files, it happens upoin adding the firebase messaging dependency, and upon removing it, the error goes away:
The library com.google.firebase:firebase-iid is being requested by various other libraries at [[17.0.4,17.0.4]], but resolves to 17.0.2. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.
.Project Files
iOS
ios/Podfile
:AppDelegate.m
:Android
android/build.gradle
:android/app/build.gradle
:android/settings.gradle
:MainApplication.java
:AndroidManifest.xml
:Environment
ADD_SOMETHING_HERE
e.g. iOS 10 or Android API 2810.14
N/A
N/A
Android Studio 3.1.4
React Native
version:react-native 0.57.1
React Native Firebase
library version:react-native-firebase 5.0.0
Firebase
module(s) you're using that has the issue:TypeScript
?3.1.1
ExpoKit
?ExpoKit
N/A
Think
react-native-firebase
is great? Please consider supporting the project with any of the below:React Native Firebase
andInvertase
on Twitter