Reputation: 1970
I'm want to implement Twitter login in my app, but I can't import any of the related classes.
In my gradle I added:
implementation 'com.twitter.sdk.android:twitter:3.3.0'
gradle sync works fine, app compiles and run, but I'm not able to import any of the com.twitter
classes like TwitterConfig
. If I write "Twitter" and let Android Studio suggest me the only option I get are TwitterAuthCredential
and TwitterAuthProvider
both from com.google.firebase.auth
.
What is going on? Am I missing some gradle line?
Upvotes: 0
Views: 839
Reputation: 1970
I managed to solve it importing only the dependecies I needed:
implementation 'com.twitter.sdk.android:twitter-core:3.3.0'
implementation 'com.twitter.sdk.android:tweet-ui:3.3.0'
implementation 'com.twitter.sdk.android:tweet-composer:3.3.0'
implementation 'com.twitter.sdk.android:twitter-mopub:3.3.0'
It migth be related to the large size of the library.
Upvotes: 1