Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android dependency 'com.google.firebase:firebase-messaging' has different version for the compile (18.0.0) and runtime (19.0.0) classpath. You should manually set the same version via DependencyResolution #2249

Closed
tusharmutreja opened this issue Jun 18, 2019 · 6 comments

Comments

@tusharmutreja
Copy link

tusharmutreja commented Jun 18, 2019

Hey guys,

I am facing this above issue since yesterday.
Initially, Everything was working fine but suddenly the project stops working.

Dependencies are:

  • "react-native-firebase": "^4.3.8"
    
  • "react-native": "0.55.4",
    

Solutions tried:

Tired to change the version of com.google.firebase:firebase-messaging to 19.0.0 in Build.gradle file.But it gives another error

  • Also tried to follow this link [https://developers.google.com/android/guides/releases]

These are my other dependencies in build.gradle:

`
implementation "com.google.android.gms:play-services-base:16.1.0"

implementation "com.google.firebase:firebase-core:16.0.9"

implementation "com.google.firebase:firebase-auth:17.0.0"

implementation "com.google.firebase:firebase-messaging:18.0.0"

implementation "com.google.firebase:firebase-ads:15.0.1"

implementation('com.crashlytics.sdk.android:crashlytics:2.9.5@aar')

`

Please help if anyone face that issue

@mikehardy
Copy link
Collaborator

Check the versions and the release notes, Google Play released a breaking change and you need to pin your dependencies using ext{} blocks to make sure you don't pull in the AndroidX version. This is essentially a duplicate then - #1588 - not to be short but the entire react-native ecosystem is dealing with this earthquake at the moment. Just know that projects will build you just need to specify your dependencies carefully (as was always the case but this hit more people at once)

@tusharmutreja
Copy link
Author

Hey @mikehardy
I followed the release update of android(updating the compile SDK version and gradle).
but no luck that creates another issue.

Will you please describe steps to solve this problem and I stuck in this from 3 days

@ghost
Copy link

ghost commented Jun 20, 2019

I have similar problem.

@ghost
Copy link

ghost commented Jun 20, 2019

Hey @mikehardy
I followed the release update of android(updating the compile SDK version and gradle).
but no luck that creates another issue.

Will you please describe steps to solve this problem and I stuck in this from 3 days

try add force = true in build.gradle:

compile ("com.google.firebase:firebase-messaging:19.0.0") {
    force = true
}

@tusharmutreja
Copy link
Author

tusharmutreja commented Jun 20, 2019

Thanks @procoru
I tried but now it gives another error:

AAPT: No resource identifier found for attrib
ute 'appComponentFactory' in package 'android'

Also tried to solve this problem then it gives another error, didn't find the particular solution

@mikehardy
Copy link
Collaborator

Sorry guys, this is general gradle stuff, it's not specific to this library. You'll have to read up on how to manage your gradle dependencies, and since those specific versions (from 18 to 19 on messaging) cross the AndroidX boundaries you'll have to learn up on that as well. This will be happening for the next couple months, it's worth the study time https://developer.android.com/jetpack/androidx/migrate / facebook/react-native#25293

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants