导入Facebook的SDK为Android 0.3.1工作室工作室、SDK、Facebook、Android

由网友(我爹他儿子最帅!)分享简介:在0.3.1中的项目结构对话框完全改变了 - 我无法弄清楚如何使用新的结构导入Facebook的SDK。 Facebook的导入说明尚未更新。如果有人库仑提供帮助,请那会是多少AP preciated。The Project Structure dialog in 0.3.1 has changed complete...

在0.3.1中的项目结构对话框完全改变了 - 我无法弄清楚如何使用新的结构导入Facebook的SDK。 Facebook的导入说明尚未更新。如果有人库仑提供帮助,请那会是多少AP preciated。

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 been updated. If anyone coul provide assistance please that would be much appreciated.

更新:截图错误的应用@ plastiv的建议后,

Update: Screenshot of errors after applying @plastiv's suggestion

推荐答案

编辑下一个文件并重新同步工程(同步项目摇篮文件按钮或重启的想法)。

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'
}

正如你可以看到这是不是官方@aar库包,直到Facebook的上传其SDK来mavenCentral我们可以使用从社会上这种临时解决方案。

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.

阅读全文

相关推荐

最新文章