Android Developer App Upload需要SDK< = 19

时间:2014-07-24 11:12:17

标签: android sdk upload google-play

几个月前,我从Eclipse更改为Android Studio。 现在我想发布一个上传,但在上传我签名的APK之后我得到:

上传失败 您必须使用低于等于19的SDK。

我的gradle文件如下所示:

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:0.12.+'
    }
}
apply plugin: 'android'

dependencies {
    compile fileTree(dir: 'libs', include: '*.jar')
    compile 'com.google.android.gms:play-services:5.0.77'
}

configurations {
    all*.exclude group: 'com.android.support', module: 'support-v4'
}

android {
    compileSdkVersion 18
    buildToolsVersion '19.1'

    defaultConfig {
        minSdkVersion 14
        targetSdkVersion 18
    }

    sourceSets {
        main {
            manifest.srcFile 'AndroidManifest.xml'
            java.srcDirs = ['src']
            resources.srcDirs = ['src']
            aidl.srcDirs = ['src']
            renderscript.srcDirs = ['src']
            res.srcDirs = ['res']
            assets.srcDirs = ['assets']
        }

        // Move the build types to build-types/<type>
        // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
        // This moves them out of them default location under src/<type>/... which would
        // conflict with src/ being used by the main source set.
        // Adding new build types or product flavors should be accompanied
        // by a similar customization.
        debug.setRoot('build-types/debug')
        release.setRoot('build-types/release')
    }


    signingConfigs {
        release {
            storeFile file("XXX")
            storePassword "XXX"
            keyAlias "XXX"
            keyPassword "XXX"
        }
    }
    buildTypes {
        release {
            signingConfig signingConfigs.release
        }
    }
    dexOptions {
        incremental true
    }
}

谢谢!

0 个答案:

没有答案