将Crashlytics集成到图书馆项目 [英] Integrating Crashlytics to library project

查看:65
本文介绍了将Crashlytics集成到图书馆项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个图书馆项目(自定义视图图书馆项目),其中没有任何活动/服务。我想将Crashlytics SDK集成到我的库中。当我尝试通过Android Studio的Crashlytics插件(工具栏中的图标)添加它时,它只停留在正在检查 上,用于选择工具包安装。
问题是如何向我的Android库项目中添加Crashlytics?

I have a library project (a custom view library project) which doesn't have any Activities/services. I want to integrate Crashlytics SDK to my library. When I try to add it via Crashlytics plugin (the icon in toolbar) for Android Studio, it just stays on "Checking" for "Select a kit to install". The question is how can I add Crashlytics to my Android library project?

最佳问候

推荐答案

即使您打算仅将Crashlytics集成到您的库中,您目前也需要一个应用程序模块。如果您只有图书馆,那没有合理的方法,至少不是正式的。

You need an app module at the moment, even if your intention is to integrate Crashlytics only in your library. If what you only have is the library, there is no reasonable way of doing that, not officially yet at least.

请参见以下,以便首先在应用程序端生成必要​​的内容,然后(其中一些)移向您的

See below for generating the necessary stuff first in the app side and then moving (some of them) towards your library such as the initialization.


当您携带工具包时,Fabric会在基础项目
中设置初始化代码,而不是在基础项目中图书馆。 这是您的操作方法...

这篇关于将Crashlytics集成到图书馆项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆