简体   繁体   中英

Firebase Crashlytics not working in Android Library Module (sub-project)

I am working on a project that contains multiple Java modules. Implementing new Firebase Crashlytics went fine with main Application module, and I get crash reports in Firebase console, but I can't get it to work with these other library modules. The only thing similar to the problem I have is in this Fabric docs link, but even dough Google bought them, it doesn't work with Firebase version of Crashlytics.

Like all other Firebase SDKs, Firebase Crashlytics depends on a Firebase configuration that can only be applied to your application module. You can't apply Firebase configuration to a library module. You can put the Crashlytics dependency in a library module, but you still need to configure the app module so the SDK knows where to report the errors it captures. This involves google-services.json and applying the fabric.io plugin, as described in the documentation .

Anyone solve the issue? as i also have many android library which all integrated in one library and in that library i want to add crashlytics

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