我需要生成一个未签名的发布 APK(然后其他人将签名并将其发布到商店 - 其他人处理密钥和其他所有内容).我的问题是每当我尝试构建时,Android Studio都会抛出错误:
app-flavorUnsigned-release-unsigned.apk is not signed. Please configure the signing information for the selected flavor using the Project Structure dialog.
Run Code Online (Sandbox Code Playgroud)
我尝试了几种以前的方法:
gradle assemble或gradle assembleRelease(由于我的一个重要模块库试图构建而失败)这是我当前的[app's] build.gradle:
apply plugin: 'com.android.application'
android {
signingConfigs {
unsigned {
storePassword = ""
keyAlias = ""
keyPassword = ""
}
}
compileSdkVersion 19
buildToolsVersion "20.0.0"
defaultConfig {
applicationId "hiddenForClientPrivacy"
minSdkVersion 13
targetSdkVersion 20
versionCode 1
versionName "1.0"
signingConfig signingConfigs.unsigned
}
buildTypes { …Run Code Online (Sandbox Code Playgroud)