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

Most upvoted comments

@jhbruhn @bhurling @joernahrens Just upgraded to 1.1.5, it seems to be fixed!

The current workaround is to add android.useOldPackaging=true to your gradle.properties file.

Yes. Issue can stay closed. Cheers

On Tue, Sep 6, 2016, 16:25 Jared Burrows notifications@github.com wrote:

So everything is still good?

— You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub https://github.com/Triple-T/gradle-play-publisher/issues/145#issuecomment-244966822, or mute the thread https://github.com/notifications/unsubscribe-auth/AAO1J_yZCtKIe5Gj1qQWL9CkeWmCxkroks5qnXfigaJpZM4IoCiF .

It seems to work with 2.2.0-beta1

edit: I messed this, sorry, it doesn’t work 😒