Import Facebook SDK for Android Studio 0.3.1

时间秒杀一切 提交于 2019-11-29 08:09:28

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.

You need to install 'Android support repository' from Android SDK manager

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!