0

I tried uploading my apk to Googleplay because of this.

You uploaded an APK that is not zip aligned. You will need to run a zip align tool on your APK and upload it again.

So I added buildtypes for using zipalign with proguard in build.gradle

buildTypes {
        release {
            runProguard true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
            zipAlign true
        }
    }

but I got this error code during making signed apk file.

Generate signed APK: Errors while building apk, see messages tool window for list of errors.

so I tried building signed apk with setting runProguard false, actually it worked.

but I really wondering why I couldn't make signed apk with Proguard.

kimkevin
  • 2,202
  • 1
  • 26
  • 48

1 Answers1

1

Check the location and path to the key signature.

Forme
  • 301
  • 3
  • 16