Import Facebook SDK for Android Studio 0.3.1

前端 未结 2 676
忘了有多久
忘了有多久 2020-12-18 12:33

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 ha

相关标签:
2条回答
  • 2020-12-18 13:16

    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.

    0 讨论(0)
  • 2020-12-18 13:20

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

    0 讨论(0)
提交回复
热议问题