Android studio not fetching libs for my android twitter app

294 views Asked by At
dependencies {
   compile('com.twitter.sdk.android:tweet-ui:1.2.0@aar') {
       transitive = true;
    }
}

As described in https://dev.twitter.com/twitter-kit/android/twittercore

But It is not Importing library

Android studio error

Error:Failed to resolve: com.twitter.sdk.android:twitter-core:1.3.3

2

There are 2 answers

8
Adam S On

Did you include the Fabric/Twitter Maven repository at the top of your build.gradle?

buildscript {
    repositories {
        maven { url 'https://maven.fabric.io/public' }
    }

    dependencies {
        classpath 'io.fabric.tools:gradle:1.+'
    }
}
0
Lokesh Tiwari On

I found answer as per suggestion by "Adam S" below
Simply install fabric plugin from here
https://get.fabric.io/native-social and thats it see the magic Credit goes to https://stackoverflow.com/users/1217087/adam-s