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

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

问题描述

我一直在搜索stack stack和google的答案,但没有什么似乎是最新的android工作室和旧答案不工作所以我想知道有人可以帮助我这里?



这些不工作




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

  • 您需要设置此文件夹如何模块。转到文件 settings.gradle ,并加入这个':name_of_folder'

  • 现在只需要在你的 app.gradle `compile project(':name_of_folder')



  • 这就是全部。



    好的,这个错误是很常见的。您将需要在 settings.gradle

      ANDROID_BUILD_TARGET_SDK_VERSION = 19 
    中设置此全局变量ANDROID_BUILD_TOOLS_VERSION = 19
    ANDROID_BUILD_SDK_VERSION = 1


    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?

    Theses don't work

    Android Studio 0.8.1 - how to use Facebook SDK? using facebook sdk in android studio http://trinitytuts.com/integrating-facebook-sdk-application-android-studio/

    Thanks for the help in advance.

    EDIT

    I get this error

    This is my settings.gradle file

    解决方案

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

    You only need follow this steps:

    • 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')

    That's all.

    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天全站免登陆