Я хочу создать приложение для Android и начать подписывать его. Для этого мне нужно иметь версию apk версии. Документация Google предлагает только Eclipse и ant способы создания релизов: http://developer.android.com/tools/publishing/app-signing.html#releasecompile
Однако я не могу найти, как заставить gradle построить версию apk. build.gradle не дает никаких намеков. gradlew tasks предполагает, что нет установленной версии Release configuration, но существует версия удаления:
Install tasks
-------------
installDebug - Installs the Debug build
installTest - Installs the Test build for the Debug build
uninstallAll - Uninstall all applications.
uninstallDebug - Uninstalls the Debug build
uninstallRelease - Uninstalls the Release build
uninstallTest - Uninstalls the Test build for the Debug build
Мой build.gradle:
buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:0.5.+'
    }
}
apply plugin: 'android'
repositories {
    mavenCentral()
}
dependencies {
    compile 'com.android.support:support-v4:13.0.+'
    compile files('libs/android-support-v4.jar')
    compile project(":libraries:ActionBarSherlock")
    compile project(":libraries:CollabsibleSearchMenu")
}
android {
    compileSdkVersion 18
    buildToolsVersion "18.0.1"
    defaultConfig {
        minSdkVersion 8
        targetSdkVersion 16
    }
}
Что мне не хватает?



Рисунок 4. Создание конфигурации подписи в Android Studio.
Рисунок 5. Выберите конфигурацию подписи в Android Studio.