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.

[Android] Build failed ':react-native-fcm' could not be found

See original GitHub issue

I’m unable to add react-native-fcm, react-native-firebase-analytics, react-native-firebase-crash-report to my app. iOS is fine but on Android I receive the following error:

* Where:
Build file '/Users/ferdinandvonhagen/GoStudentDev/mobile-app/android/app/build.gradle' line: 131

* What went wrong:
A problem occurred evaluating project ':app'.
> Project with path ':react-native-fcm' could not be found in project ':app'.

I followed the steps from the README.md. My React Native version is 0.30.0.

Anybody an idea how to solve this issue?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9

github_iconTop GitHub Comments

26reactions
cubabitcommented, Jun 9, 2017

For me, it was because I missed this step:

Edit android/app/settings.gradle …

  • include ‘:react-native-fcm’
  • project(‘:react-native-fcm’).projectDir = new File(rootProject.projectDir, ‘…/node_modules/react-native-fcm/android’) include ‘:app’
2reactions
cyphirecommented, Nov 30, 2017

Thank you!!! Same problem with self installation of react-native-firebase…

Read more comments on GitHub >

github_iconTop Results From Across the Web

cannot build react-native from Android Studio, Build failed
After installing react-native-fcm , the build does not succeed. I am not quite sure what to change and what version do I use...
Read more >
Dealing With Problems With Building the App & Detox
This page is about issues related to building the app, typically triggered when running detox build (and not detox test, for example).
Read more >
react-native-fcm-fix - npm
In firebase console, you can: for Android: download google-services.json file and place it in android/app directory; for iOS: download ...
Read more >
Android studio build failed debug/out error-React Native
Coding example for the question Android studio build failed debug/out ... React Native Android Build Error MainActivity.java:29: error: cannot find symbol ...
Read more >
How to solve Google Play Services version collision in gradle ...
gms) that collide between react-native-maps and react-native-fcm. I tried few simple fixes from few guides. I changed my android/app/build.
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