Could not find class 'retrofit2.Retrofit$Builder', referenced from method com.twitter.sdk.android.core.internal.oauth.OAuthService.<init>


#1

Could not find class 'retrofit2.Retrofit$Builder', referenced from method com.twitter.sdk.android.core.internal.oauth.OAuthService.<init>

I’m not using Twitter Login/Tweets. I only use Crashlytics and Digits.
Digits : com.digits.sdk.android:digits:2.0.
Crashlytics : om.crashlytics.sdk.android:crashlytics:2.6.2@aar

Retrofit version is 2.1


#2

Thanks for reporting this @abhilash. I haven’t been able to reproduce this locally, can you share more of your build.gradle and how you’re initializing Fabric in your app?

-Mike


#3

Hey, thanks for looking into the issue. Now first of all, a small note.
This issue occurs only on Android version KITKAT and below. On LOLLIPOP and MARSHMALLOW, everything works fine.

Gradle :
compile 'com.squareup.retrofit2:converter-gson:2.0.1’
compile 'com.squareup.okhttp3:okhttp:3.4.1’
compile ‘com.squareup.okhttp3:okhttp-ws:3.4.1’

Application Class :
TwitterAuthConfig authConfig = new TwitterAuthConfig(Constants.TWITTER_KEY, Constants.TWITTER_SECRET);
Fabric.with(this, new Digits.Builder().withTheme(R.style.CustomDigitsTheme).build(), new TwitterCore(authConfig));


#4

Thanks for that info, I still haven’t been able to reproduce this though. Would you be willing to share your full build.gradle? If you prefer to share it privately, please email into support(at)fabric(dot)io and reference this thread.