question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding Fabric Crashlytics conflict with Twitter login

See original GitHub issue

Greetings

I recently add Fabric so I can track my crash in prod. The app has the Twitter firebase-ui-auth login, the error is the following:

java.lang.IllegalStateException: Must start Twitter Kit with Fabric.with() first

For what I can see I have to start the Twitter kit first, considering Fabric is started in tthe LoginActivity I have try this:

Fabric.with(this, new Crashlytics(), new TwitterCore(new TwitterAuthConfig(getString(R.string.twitter_consumer_key), getString(R.string.twitter_consumer_key))));

But my attempt was in vain.

Some help please 😦

[UPDATE: the issue has being solved, please read the thread and see the gist in a further comment]

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
samtsterncommented, Jan 20, 2017

Can you try adding the following code in your Application class (similar to what you tried before):

        TwitterAuthConfig authConfig = new TwitterAuthConfig(
                appContext.getString(R.string.twitter_consumer_key),
                appContext.getString(R.string.twitter_consumer_secret));
        Fabric.with(appContext.getApplicationContext(), new Twitter(authConfig), new Crashlytics());
0reactions
netbitsolutionscommented, Jan 5, 2019

TwitterAuthConfig authConfig = new TwitterAuthConfig( appContext.getString(R.string.twitter_consumer_key), appContext.getString(R.string.twitter_consumer_secret)); Fabric.with(appContext.getApplicationContext(), new Twitter(authConfig), new Crashlytics());

Where should this code be added

Read more comments on GitHub >

github_iconTop Results From Across the Web

Twitter login is not working with crashlytics sdk. Error
I'm already using the twitter login functionality in my app and its working fine. But currently I need to integrate crashlytics in my ......
Read more >
Guest post: Stitching together the Twitter Kit in the Fabric SDK
Migrating from the old Crashlytics SDK to the new Fabric SDK was remarkably simple. First, you need to change your old repository in...
Read more >
[Solved]-How to change Fabric Twitter Title name when try to login
1.Login to fabric.io and select the application. 2.Select twitter kit from leftside panel that looks like. enter image description here. 3.You will see ......
Read more >
A Non-Developer's Guide To Fabric, Twitter's New Platform ...
Crashlytic s: Stability & Analytics For Apps; MoPub: Revenue & Ads; Twitter Kit: Distribution & Content; Digits: Sign-on & Identity. Next, let's ...
Read more >
Firebase Apple SDK Release Notes - Google
Fixed inconsistent sign in prompts in single scene apps (#8096). ... Fixed symbol collisions with the legacy Fabric Crashlytics SDK and added a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found