Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot get property 'compileSdkVersion' on extra properties extension as it does not exist

Tags:

android

Someone please help me.... Cannot get property 'compileSdkVersion' on extra properties extension as it does not exist in android studio.

like image 224
yeshvee Avatar asked Nov 09 '22 17:11

yeshvee


1 Answers

Go to "Project Files" view and open the build gradle.

You will find something like this

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.1'


        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

You have to add this definition:

ext {
    compileSdkVersion = 23
    buildToolsVersion = "23.0.1"
    targetSdkVersion = 21
}
like image 162
Voni Lara Avatar answered Nov 14 '22 23:11

Voni Lara