Android Studio doesn't generate signed apk after update to 2.3
Asked Answered
M

2

5

I have faced some troubles with uploading release version to fabric(crashlytics) after generating release build in Build->Generate Signed Apk. After moving app-release.apk into Fabric window I see following error: "The provided APK can't be distributed because it is unsigned."

Fabric error

What I'm doing wrong? Keystore and its password didn't change.

Mirellamirelle answered 13/3, 2017 at 13:52 Comment(1)
Have you zip-aligned the apk? Also disable Instant Run before signing your apkTimbuktu
C
20

I had the same problem yesterday.

I had to make sure the checkboxes for signature versions where both checked. These both are unchecked by default.

enter image description here

Crustal answered 13/3, 2017 at 13:56 Comment(7)
Yes, surprisingly, I had this too happen after upgrade;Timbuktu
Thank you very much, Ruben. You saved my day.Mirellamirelle
You are welcome. Please accept my answer when possible :)Crustal
I have the same problem, but even after checking two check boxes for signature version, signed apk doesn't appear. :(Joliejoliet
just app-release.apk and and app-debug.apkJoliejoliet
Okay, I realized, that it's possible to zipalign app-release.apk, and then Google play it accepts.Joliejoliet
I cannot select it :/Gastrulation
S
0

Just try to add this:-v2SigningEnabled false in your build.gradle.

android {
    ...
    defaultConfig { ... }
    signingConfigs {
      release {
        storeFile file("myreleasekey.keystore")
        storePassword "password"
        keyAlias "MyReleaseKey"
        keyPassword "password"
        v2SigningEnabled false
      }
    }
  }

After then select enter image description here

Sordino answered 24/7, 2017 at 13:50 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.