简体   繁体   English

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

[英]Crashlytics migration for Firebase ruins Twitter functionality from Fabric

I'm using the Twitter kit from Firebase我正在使用 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());

But I've migrated Crashlytics to Firebase.但我已将 Crashlytics 迁移到 Firebase。 Firebase doesn't work if I keep having the key in the manifest如果我在清单中保留密钥,Firebase 将无法工作

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

Problem is that if I remove it, I can't use Twitter anymore, it crashes with java.lang.IllegalStateException: Must start Twitter Kit with Fabric.with() first android.app.ActivityThread.performLaunchActivity问题是,如果我删除它,我就不java.lang.IllegalStateException: Must start Twitter Kit with Fabric.with() first android.app.ActivityThread.performLaunchActivity使用 Twitter,它会因java.lang.IllegalStateException: Must start Twitter Kit with Fabric.with() first android.app.ActivityThread.performLaunchActivity崩溃java.lang.IllegalStateException: Must start Twitter Kit with Fabric.with() first android.app.ActivityThread.performLaunchActivity

Is there a solution for this ?!有没有解决办法?! I can't find a middle ground to support both of 'em.我找不到中间立场来支持他们两个。

Twitter kit is no longer part of Fabric or Crashlytics. Twitter 套件不再是 Fabric 或 Crashlytics 的一部分。 However, it is available through the Twitter Developer site.但是,它可以通过 Twitter 开发人员网站获得。 Check there for how to update your SDKs.查看那里了解如何更新您的 SDK。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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