Firebase crashlytics without google-services.json and google play services

1.8k views Asked by At

I am trying to run the task crashlyticsUploadMappingFileRelease however, it fails with "Google App ID not found"

I do not want to have google play services plugin in my app. How do I make it find the app ID?

1

There are 1 answers

2
Dmitriy Mitiai On

I got the same problem and spent a lot of time to solve it. Finally I got success result. So, you have to add this

firebaseCrashlytics {
    mappingFileUploadEnabled false
}

to release (or every) build type in your project - module level build.gradle. See this for details.

Later in the code you have to initialize the firebase app by calling

FirebaseApp.initializeApp(context, options);

FirebaseCrashlytics will be initialized as well.

NOTE:

This approach has one disadvantage. If you use obfuscation, crashes in the firebase console will also be obfuscated

Hope this will help you or anyone else.