Crashlytics found an invalid API key - AndroidStudio build

bajicdusko picture bajicdusko · Dec 14, 2014 · Viewed 46.6k times · Source

I saw all other questions, but none of accepted answers is working for me.

By following integration steps found here https://dev.twitter.com/twitter-kit/android/integrate I have created crashlytics.properties file in module root. File is filled with apiKey and apiSecret values found in my newly created twitter application.

Error occurr on project build. I am using AndroidStudio 1.0

This is my error:

ERROR - Crashlytics Developer Tools error.
java.lang.IllegalArgumentException: Crashlytics found an invalid API key: REAL_APIKEY_VALUE. 
Check the Crashlytics plugin to make sure that the application has been added successfully! 
Contact [email protected] for assistance.

Answer

Prashant Gosai picture Prashant Gosai · Mar 5, 2019

You just forgot to add one line, in app-level gradle file.

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

this happens because when you are adding firebase:crashlytics, firebase document not have this line. so you need to add it manually. see this is firebase:crashlytics document photo.Check This Image