Как настроить Gradle и Android Studio, чтобы сделать релиз сборки?
Я хочу создать приложение для Android и начать его подписывать. Для этого мне нужно иметь версию выпуска apk. Документация Google предлагает только Eclipse и ant способы создания сборок:http://developer.android.com/tools/publishing/app-signing.html#releasecompile
Однако я не могу найти, как заставить gradle build выпуск версии apk.build.gradle
тоже не дает никаких намеков.gradlew tasks
предполагает, что не существует установленной конфигурации выпуска, но существует неустановленная версия:
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
}
}
Чего мне не хватает?