导入Facebook的SDK为Android 0.3.1工作室 [英] Import Facebook SDK for Android Studio 0.3.1

查看:193
本文介绍了导入Facebook的SDK为Android 0.3.1工作室的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在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.

这篇关于导入Facebook的SDK为Android 0.3.1工作室的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆