Facebook Android Studio

Asked

Viewed 156 times

1

I am with following error I could not find a solution:

Error:(15, 0) Could not find Property 'ANDROID_BUILD_SDK_VERSION' on project ':facebook'.

I’m using Android studio 1.2.2.

build.gradle:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 22
    buildToolsVersion "23.0.0 rc3"

    defaultConfig {
        applicationId "com.example.douglaswilliam.app_carona"
        minSdkVersion 9
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

repositories {
    mavenCentral()
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.android.support:appcompat-v7:22.2.1'
    compile 'com.facebook.android:facebook-android-sdk:4.5.1'
    compile project(':facebook')
}

solved as follows I edited: compileSdkVersion 22 for compileSdkVersion 19 and buildToolsVersion "23.0.0 rc3" for buildToolsVersion "21.0.0 rc3" and install build tools

1 answer

1


The Facebook SDK version(facebook-android-sdk:4.5.1) that you are using does not work for the SDK 9 version of android that you have established in the project on line minSdkVersion 9

See other versions of SDK from facebook or increase the minimum skd value of android.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.