如何使用Android Studio和/或Gradle构build唯一的buildType

我在build.gradle中有几种构buildtypes:

signingConfigs { debug { storeFile file("debug.keystore") storePassword = "android" keyAlias = "androiddebugkey" keyPassword = "android" } unsigned{ storePassword = "" keyAlias = "" keyPassword = "" } release { storeFile file("release.keystore") keyAlias "alias" storePassword "foo" keyPassword "bar" } } buildTypes { release { debuggable false jniDebugBuild false signingConfig signingConfigs.release } unsigned { debuggable false jniDebugBuild false signingConfig signingConfigs.unsigned } debug { debuggable true jniDebugBuild true signingConfig signingConfigs.debug } } 

哪些工作正常,但问题是,我不知道(而且我没有find大量的search后)一种方式如何从Android Studio或命令行构build唯一的构buildtypes。

你知道吗?

Related of "如何使用Android Studio和/或Gradle构build唯一的buildType"

文档说( http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Android-tasks和http://tools.android.com/tech-docs/new-build -system / user-guide#TOC-Building-and-Tasks ),您可以使用以下命令来生成特定的生成types:

 gradle assembleDebug gradle assembleRelease