Wie erstelle ich gradle und android studio für den Release Build?
Ich möchte eine Android App erstellen und mit dem Signieren beginnen. Dafür brauche ich eine Release-Version von apk. In der Google-Dokumentation werden nur Eclipse- und Ant-Methoden für Release-Builds vorgeschlagen:http://developer.android.com/tools/publishing/app-signing.html#releasecompile
Jedoch kann ich nicht finden, wie man gradle build release version von apk erzwingt.build.gradle
gibt auch keine hinweise.gradlew tasks
schlägt vor, dass keine Release-Konfiguration für die Installation vorhanden ist, aber ein Deinstallations-Release vorhanden ist:
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
Meinebuild.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
}
}
Was mir fehlt