react-native-fcm: Could not find com.google.firebase:firebase-analytics:12.0.1.
Everything was working fine untill this morning. I have no idea what’s wrong but it is across multiple projects. Didn’t change anything I’m still in process of programming. Didn’t add any new node modules or change any of the settings.
This was output: `Could not resolve all dependencies for configuration ‘:app:_debugApk’.
A problem occurred configuring project ‘:react-native-fcm’. Could not resolve all dependencies for configuration ‘:react-native-fcm:_debugPublishCopy’. Could not find com.google.firebase:firebase-analytics:12.0.1.`
Just tried to run react-native run-android.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 3
- Comments: 26 (1 by maintainers)
I tried everything from all the above mentioned solutions to upgrading fcm to latest version, nothing worked for me.
following is the solution which worked for me: change this in your project’s build.gradle file
to this
I got it working by upgrading fcm to latest version.
When i change build.gradle to
compile "com.google.firebase:firebase-core:+"compile "com.google.firebase:firebase-messaging:+"I have other problemAny one known about this problem