Facebook Android Studio

1

I have the 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')
}

I solved the following as I edited: compileSdkVersion 22 to compileSdkVersion 19 and buildToolsVersion "23.0.0 rc3" to buildToolsVersion "21.0.0 rc3" and install build tools

    
asked by anonymous 20.08.2015 / 00:22

1 answer

1

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

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

    
20.08.2015 / 01:19