Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android crashes reported in DigitsActivity, DigitsActionBarActivity, FailureActivityDelegateImpl

Crashlytics is reporting crashes that happen in DigitsActivity, DigitsActionBarActivity, FailureActivityDelegateImpl.

Crash is: Fatal Exception: java.lang.IllegalAccessError: This activity can only be started from Digits

I get this crash reported a few times for each on every build we release.

These activities are apparently a part of the Fabric/Twitter SDK to sign in with a phone number. However, I am not using them at all! Anyone have an explanation for what could be happening here?

like image 464
Greg Ennis Avatar asked Jun 12 '15 16:06

Greg Ennis


1 Answers

If you don't use Digit's, you could try to only include the Twitter-Core:

Upgrade your gradle to:

dependencies {
    compile('com.twitter.sdk.android:twitter-core:1.5.0@aar') {
        transitive = true;
    }
}

And your application's onCreate to:

Fabric.with(this, new TwitterCore(authConfig));
like image 51
Bart Bergmans Avatar answered Oct 30 '22 21:10

Bart Bergmans