Я хочу створити додаток для Android і почати підписувати його. Для цього мені потрібно мати Release версію 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
}
}
Чого мені не вистачає?


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



Build->Generate Signed APKз меню.