Unable to parse symbols in Android… here is a solution to the problem.
Unable to parse symbols in Android
I’m working on integrating twitter with my android app, and I’m using the twitter4j library to do this.
I added the
twitter4j library file and put it in the folder libs, and added the compilation dependencies in build.gradle inside the app 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
Solution
In the Gradle drawer on the right, can you hit the refresh button to see if that helps? Also, the dependency block you pasted above doesn’t contain instructions for twitter4j – did you happen to just miss it in the issue, or is it really missing from the gradle.build
file?