Import Facebook Sdk For Android Studio 0.3.1
The Project Structure dialog in 0.3.1 has changed completely - I cannot figure out how to import the Facebook SDK using the new structure. Facebook's import instructions has not be
Solution 1:
Edit next file and re-sync project (Sync project with gradle files button or restart idea).
MyProject\MyApp\build.gradle
repositories {
mavenCentral()
maven {
url 'https://github.com/Goddchen/mvn-repo/raw/master/'
}
}
dependencies {
compile'com.facebook.android:facebook:3.5.2'
}
As you can see this is not official @aar library bundle, until Facebook uploads its SDK to mavenCentral we can use this temp solution from the community.
Solution 2:
You need to install 'Android support repository' from Android SDK manager
Post a Comment for "Import Facebook Sdk For Android Studio 0.3.1"