I am new to libgdx on android studio. I am trying to integrate facebook with the android project. I am following this link(Getting Started) to integrate it with the android module. When I press sync I am supposed to be able to import com.facebook.FacebookSdk;
But it doesnt work that way.No matter what I try I get error cannot resolve symbol 'facebook'
In build.gradle of android module I have added:
repositories {
mavenCentral()
}
dependencies {
compile 'com.facebook.android:facebook-android-sdk:4.1.0'
compile files('libs/twitter4j-core-4.0.4.jar')
compile files(some adnetwork jars)
}
I also tried to add the compile 'com.facebook.android:facebook-android-sdk:4.1.0' in main build.gradle under project(":android") doesn't work either.
I tried syncing gradle several times, restarting android studio also File-> invalidatecaches/restart nothing seems to help.
Am I missing some step. Please advice.
Thanks