Firebase的Crashlytics迁移破坏了Fabric的Twitter功能

问题描述 投票:0回答:1

我正在使用Firebase的Twitter工具包

TwitterAuthConfig authConfig = new TwitterAuthConfig(BuildConfig.TW_CUSTOMER_KEY, BuildConfig.TW_CUSTOMER_SECRET);
Fabric.with(this, new Twitter(authConfig), new TwitterCore(authConfig), new TweetUi());

但是我已经将Crashlytics迁移到Firebase。如果我继续在清单中包含密钥,则Firebase无法正常工作

    <meta-data
        android:name="io.fabric.ApiKey"
        android:value="9249a2692d5c8xxxxxxxxxxxxxc" />

问题是,如果删除它,我将无法再使用Twitter,它会崩溃,并显示java.lang.IllegalStateException: Must start Twitter Kit with Fabric.with() first android.app.ActivityThread.performLaunchActivity

是否有解决方案?!我找不到支持两者的中间立场。

android firebase crashlytics twitter-fabric google-fabric
1个回答
0
投票

Twitter套件不再是Fabric或Crashlytics的一部分。但是,可以通过Twitter Developer网站获得它。在此处查看如何更新您的SDK。

© www.soinside.com 2019 - 2024. All rights reserved.