evollu / react-native-fcm

react native module for firebase cloud messaging and local notification
MIT License
1.73k stars 682 forks source link

Could not find firebase-analytics-impl-license.aar #953

Open skrypnyk88 opened 6 years ago

skrypnyk88 commented 6 years ago

I used react-native-fcm for few month and today I got an error in android studio.

Could not find firebase-analytics-impl-license.aar (com.google.firebase:firebase-analytics-impl-license:11.8.0). Searched in the following locations: https://jcenter.bintray.com/com/google/firebase/firebase-analytics-impl-license/11.8.0/firebase-analytics-impl-license-11.8.0.aar

So I can't run run or build project. Have someone found some solution? 1) This problem appeared only on android version of app (ios still work fine). 2) I also reproduced this error with the example project in this repo.

I think this is firebase bug but I'm not sure.

arsal-wal commented 6 years ago

Hi! I've the same problem. Did you find a solution?

skrypnyk88 commented 6 years ago

Yes, but my solution is temporary. You should change in node-modules/react-native-fcm/android/build.gradle line with dependencies: compile 'com.google.android.gms:play-services-gcm:+' to compile 'com.google.android.gms:play-services-gcm:11.6.2'. And in my case also the same change in react-native-device-info. I hope my advice will help you.