简体   繁体   中英

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

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM