Can't resolve symbol in Android

I am working on integrating twitter with my android app, I am using twitter4j library for this.

I added twitter4j library files and put them in libs folder and added compilation to build.gradle inside application folder

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:22.2.0'
    compile 'com.google.android.gms:play-services:6.5.+'
    compile 'org.twitter4j:twitter4j-core:4.0.2'
} 

      

but i still can't use this library enter image description here

+3


source to share


2 answers


Try adding this to the "repositories" in your buildscript file.



repositories { mavenCentral() }

      

+1


source


In the Gradle box on the right, you can click the refresh button to see if that helps? Also, the dependency block you pasted above does not contain a directive for twitter4j - did you accidentally just skip it in the question, or is it really missing from the file gradle.build

?



+2


source







All Articles