Execution Error


When I try to run my program I get an error:

Error:Execution failed for task ‘:app:preBuild’.

failed to find target android-L : C:\Users\Matt\AppData\Local\Android\android-studio1\sdk

What does this mean?


I am now getting this error:

My project clearly uses android-L as shown below and a minimum version of 15; this is in my build.gradle:

android {
compileSdkVersion 'android-L’
buildToolsVersion “20.0.0”

defaultConfig {
    applicationId "com.example.matt.geoquiz"
    minSdkVersion 15
    targetSdkVersion 'L'
    versionCode 1
    versionName "1.0"

I installed all of the packages for android-L in the SDK Manager. I seriously have no idea why i am getting errors. My device is brand new, the Galaxy S5 so its not out of date. The minSdkVersion is 15…so why is it complaining my device is too old. Somebody please help i’ve been stuck on chapter 3 for weeks now…


Select a lower version of the sdk when creating the Android project may help.