简体   繁体   中英

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

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.

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.

在此输入图像描述

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 在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM