Problems adding Firebase Crashlytics to Android project - Crashlytics found an invalid API key: null

user1816142 picture user1816142 · Mar 1, 2018 · Viewed 7.7k times · Source

I am trying to add Firebase crashlytics to our project but just can not get it to work.

I have followed the instructions adding the necessary lines to our gradle file but no success so far.

The main issue I get is this message: Crashlytics found an invalid API key: null

which seems weird since I thought an API key should not be needed for Firebase.

I use Android studio 3.0.1 with the latest gradle plugin. My project is Ionic based but I have tried to hand modify the gradle file as well with the same results.

Answer

Rafols picture Rafols · May 25, 2018

I had a similar problem and it turned out that I did not apply google-services plugin in the bottom of build.gradle (in app module)

apply plugin: 'com.google.gms.google-services'

After that it is working