Importing Facebook SDK to Android Studio 0.8.6

Does anyone know how to import the Facebook SDK in version 0.8.6? In fact, I tried to import as a Facebook SDK module, but Facebook does not show up as a library.

Error: (9) There was a problem with evaluating project ': facebook'.

Could not find property 'ANDROID_BUILD_SDK_VERSION' for project ': facebook'.

Also, in the module settings, it doesn't appear as a module

+3


source to share


1 answer


I know this is a late answer to your question, but it might help other people.

Facebook "build.gradle" file assumes that you have a gradle.properties "file that has ANDROID_BUILD_SDK_VERSION declared. So all you have to do is create a file called" gradle.properties "at the root level and add the following to it.



ANDROID_BUILD_TARGET_SDK_VERSION=19
ANDROID_BUILD_TOOLS_VERSION=20.0.0
ANDROID_BUILD_SDK_VERSION=19
ANDROID_BUILD_MIN_SDK_VERSION=11

      

You can also define other variables in this file and access these variables in the "build.gradle" file. Example: project.ANDROID_BUILD_TOOLS_VERSION

+10


source







All Articles