Android studio - Failed to find target android-18

前端 未结 12 669
陌清茗
陌清茗 2020-11-29 00:22

I have a problem with Android Studio 0.2.3.

When I run my project the build stops and appears message that says:

Gradle: Execution failed for

12条回答
  •  暖寄归人
    2020-11-29 01:06

    I solved the problem by changing the compileSdkVersion in the Gradle.build file from 18 to 17.

    buildscript {
        repositories {
            mavenCentral()
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:0.5.+'
        }
    }
    apply plugin: 'android'
    
    repositories {
        mavenCentral()
    }
    
    android {
        compileSdkVersion 17
        buildToolsVersion "17.0.0"
    
        defaultConfig {
            minSdkVersion 10
            targetSdkVersion 18
        }
    }
    
    dependencies {
        compile 'com.android.support:support-v4:13.0.+'
    }
    

提交回复
热议问题