Android Studio中0.8.14安装Facebook的SDK [英] Install Facebook SDK in Android Studio 0.8.14

查看:150
本文介绍了Android Studio中0.8.14安装Facebook的SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿我一直在寻找一个答案,这对堆栈溢出和谷歌,但没有似乎是最新的Andr​​oid的最新录音室和旧的答案是没有工作,所以我想知道,如果有人可以帮助我在这里?

Hey there I have been searching for an answer to this on stack overflow and google but nothing seems to be up to date for the newest android studio and the old answers aren't working So I am wondering if someone could help me out here?

论文不工作

<一个href=\"http://stackoverflow.com/questions/24466921/android-studio-0-8-1-how-to-use-facebook-sdk\">Android工作室0.8.1 - 如何使用Facebook SDK
使用Facebook SDK在Android Studio中
http://trinitytuts.com/integrating-facebook-sdk-application-android-工作室/

感谢您提前帮助。

修改

我得到这个错误

I get this error

这是我的settings.gradle文件

This is my settings.gradle file

推荐答案

有关你可以使用Android Studio的项目中添加了Facebook的SDK。

For you can add the sdk of facebook in your project with Android Studio.

您只需要按照这个步骤进行:

You only need follow this steps:


  • 下载Facebook的SDK在 Facebook开发

  • 复制的文件夹的的Facebook 在您的根项目。

  • 您需要设置该文件夹如何模块。转到文件 settings.gradle 并包括这种:name_of_folder

  • 现在,只需把这个线在 app.gradle `编制项目(':name_of_folder')

  • Download the SDK of Facebook at Facebook Developers
  • Copy the folder facebook in your root project.
  • You need set this folder how to module. Go to the file settings.gradle and include this ':name_of_folder'
  • Now only need put this line in your app.gradle ` compile project (':name_of_folder')

这就是全部。

好吧,这个错误是很常见的。您将需要设置这个全局变量您的 settings.gradle

Ok, this error is very common. You will need set this global variables in your settings.gradle

ANDROID_BUILD_TARGET_SDK_VERSION=19
ANDROID_BUILD_TOOLS_VERSION=19
ANDROID_BUILD_SDK_VERSION=1

这篇关于Android Studio中0.8.14安装Facebook的SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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