question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not find com.google.firebase:firebase-analytics:12.0.1.

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:26 (1 by maintainers)

github_iconTop GitHub Comments

8reactions
rajeshbhagatcommented, Jun 13, 2018

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

allprojects {
    repositories {
        mavenLocal()
        jcenter()
        maven {
            url "$rootDir/../node_modules/react-native/android"
        }
      }
}

to this

allprojects {
    repositories {
        mavenLocal()
        jcenter()
        maven {
            url "$rootDir/../node_modules/react-native/android"
        }
         maven {
             url 'https://maven.google.com'
         }
    }
}
1reaction
sagark1510commented, Jun 12, 2018

I got it working by upgrading fcm to latest version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not find com.google.firebase:firebase-analytics
Please I am finding issues running my app after making changes to these files by adding firebase dependencies. Your help will ...
Read more >
Firebase Android SDK Release Notes - Google
The firebase-core library is deprecated and no further versions will be released. This SDK included the Firebase SDK for Google Analytics. Now, to...
Read more >
Many Android/Google/Firebase libraries unpublished from ...
This dependency cannot be found anymore. AS returns : Could not find com.google.gms:google-services:4.2.0. Searched in the following locations:
Read more >
Release Notes - Play services - Google Developers
For more information, see the Firebase Android SDK Release Notes. ... Note: These FIDO APIs should not be used directly. Instead, we recommend...
Read more >
包名:com.google.firebase - 玩Android
12.0.1, implementation 'com.google.firebase:firebase-analytics:12.0.1'. 15.0.0, implementation 'com.google.firebase:firebase-analytics:15.0.0'.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found