gradle-play-publisher: Could not find ZipAlign task with valid signingConfig
gradle-play-publisher fails although I specified a valid signingConfig, looking like this:
signingConfigs {
debug {
storeFile file("../keystore.jks")
storePassword keystorePassword // coming from local.properties
keyAlias "alias"
keyPassword keystorePassword
}
release {
storeFile file("../keystore.jks")
storePassword keystorePassword
keyAlias "alias"
keyPassword keystorePassword
}
}
// ...
buildTypes {
release {
signingConfig signingConfigs.release
minifyEnabled true
shrinkResources true
zipAlignEnabled true // Tested with and without this parameter.
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
signingConfig signingConfigs.debug
applicationIdSuffix '.debug'
}
}
Error:
Could not find ZipAlign task. Did you specify a signingConfig for the variation InternalRelease?
Could not find ZipAlign task. Did you specify a signingConfig for the variation ProductionRelease?
I am using the Android Plugin version 2.2.0-alpha1.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 2
- Comments: 19 (10 by maintainers)
Commits related to this issue
- #145 - Better way to check for valid signing config — committed to Triple-T/gradle-play-publisher by deleted user 8 years ago
@jhbruhn @bhurling @joernahrens Just upgraded to
1.1.5, it seems to be fixed!The current workaround is to add
android.useOldPackaging=trueto your gradle.properties file.Yes. Issue can stay closed. Cheers
On Tue, Sep 6, 2016, 16:25 Jared Burrows notifications@github.com wrote:
It seems to work with
2.2.0-beta1edit: I messed this, sorry, it doesn’t work 😒