缺少Android Studio 0.5.3 Android.CompileSDK版本

缺少Android Studio 0.5.3 Android.CompileSDK版本,android,gradle,android-studio,android-gradle-plugin,build.gradle,Android,Gradle,Android Studio,Android Gradle Plugin,Build.gradle,我正在使用Android studio 0.5.3 我不断得到: Gradle“OpenBook”项目刷新失败: 原因:缺少android.compileSdkVersion! 渐变设置 // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { mavenCentral()

我正在使用Android studio 0.5.3

我不断得到:

Gradle“OpenBook”项目刷新失败: 原因:缺少android.compileSdkVersion! 渐变设置

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:0.9.+'
    }
}
apply plugin: 'android'

repositories {
    mavenCentral()
}

android {
    compileSdkVersion 19
    buildToolsVersion "19.0.3"

    defaultConfig {
        minSdkVersion 9
        targetSdkVersion 19
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            runProguard false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
    packagingOptions {
        exclude 'META-INF/LICENSE.txt'
    }

    sourceSets {
        main {
            manifest.srcFile '/MyApp/src/main/AndroidManifest.xml'
        }
    }
}
而我的应用程序是建立在gradle上的

apply plugin: 'android'

repositories {
    mavenCentral()
}

android {
    compileSdkVersion 19
    buildToolsVersion "19.0.3"

    defaultConfig {
        minSdkVersion 9
        targetSdkVersion 19
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            runProguard false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
    packagingOptions {
        exclude 'META-INF/LICENSE.txt'
    }

    sourceSets {
        main {
            manifest.srcFile '/src/main/AndroidManifest.xml'
        }
    }
}



dependencies {
//    compile 'com.android.support:appcompat-v7:+'
    compile project("libraries:library-toast")
    compile project("libraries:Volley")
    compile project("libraries:actionbarsherlock")
    compile project("libraries:Dialoglibrary")
    compile project("libraries:google-play-services_lib")
    compile project("libraries:PullToRefreshlibrary")
    compile project("libraries:facebook")
    compile project("libraries:SlidingTabBarlibrary")
    compile project("libraries:AndroidPlot-Core")
    compile project("libraries:SignUpModule")
    compile project("libraries:Jars")
    compile project("libraries:UpdateChecker")
    compile "com.mixpanel.android:mixpanel-android:4.0.0@aar"
}
不知道该怎么办。 感谢您的帮助

您已在生成文件中指定了“compileSdkVersion 19”。看起来您缺少了SDK(可以发布更多包含错误的输出)您需要确保使用Android Studio中的SDK管理器安装了正确的SDK

杰克·沃顿创建了一个新的gradle插件来自动更新SDK