After added twitter dependency to the app, app crashes with noClass found error.
compile('com.twitter.sdk.android:twitter:1.3.1@aar') {
transitive = true;
}
For lollypop device, it works fine. but for kitkat device & emulator, it crashes with this error.
java.lang.NoClassDefFoundError: android.support.v7.app.ActionBarActivityDelegateHC
I’ve using single ActionbarActivity to inflate a Twitter Login button.
If I changed ActionbarActivity to Activity, then it crashes with NoClassDefFoundError:gson.
Another plugin like crashlytics and mopub work fine for kitkat, it only happens for twitter/tweet-composer.
Any way to solve this problem?
I’ve already found several posts from stackoverflow, but it didn’t work for me.