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?
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?
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'
}
If you have downloaded the zip file from their site.
Hope this helps