Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Twitter4j integration through Android Studio

I am trying to integrate Twitter4j library into Android project through Android Studio. Though there are enough materials for integration through Eclipse, there are no materials for integration through Android Studio.

How to do the integration?

like image 782
Mat Avatar asked Feb 03 '15 21:02

Mat


1 Answers

Just add compile 'org.twitter4j:twitter4j-core:4.0.2' to your /app/build.gradle dependencies. It should look like:

repositories { mavenCentral() }

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.android.support:support-v4:19.+'
    compile 'org.twitter4j:twitter4j-core:4.0.2'
}
like image 167
Alexander Pavlov Avatar answered Oct 10 '22 15:10

Alexander Pavlov