java 请至少选择一个签名版本以在 Android Studio 2.3 中使用

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/42865899/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-03 06:55:34  来源:igfitidea点击:

Please select at least one of the signature versions to use in Android Studio 2.3

javaapk

提问by Darush

I have recently updated my Android Studio to version 2.3.3. When trying to Generate Signed APK I am getting the error message:

我最近将我的 Android Studio 更新到了 2.3.3 版。尝试生成签名的 APK 时,我收到错误消息:

Please select at least one of the signature versions to use

请至少选择一个要使用的签名版本

There are two options: V1 (Jar Signature)and V2 (Full APK Signature). I am not sure which one to choose. And what are the merits of choosing one over the other or choosing both?

有两个选项:V1(Jar 签名)V2(完整 APK 签名)。我不确定选择哪一个。选择其一或选择两者的优点是什么?

Thanks in advance for any advice.

提前感谢您的任何建议。

回答by Nouman Tahir

Mark both Jar and Full Apk, this should give you a play store publishable signed apk.

标记 Jar 和 Full Apk,这应该会给你一个 Play 商店可发布的签名 apk。

enter image description here

在此处输入图片说明

I tried Full Apk Sign the first time but Publish Console did not accept that, selecting both options worked for me

我第一次尝试了 Full Apk Sign,但 Publish Console 不接受,选择这两个选项都对我有用

回答by Darush

According to this link: signature help

根据此链接:签名帮助

APK Signature Scheme v2 offers:

APK 签名方案 v2 提供:

  1. Faster app install times
  2. More protection against unauthorized alterations to APK files.
  1. 更快的应用安装时间
  2. 更多保护,防止对 APK 文件进行未经授权的更改。

Android 7.0 introduces APK Signature Scheme v2, a new app-signing scheme that offers faster app install times and more protection against unauthorized alterations to APK files. By default, Android Studio 2.2 and the Android Plugin for Gradle 2.2 sign your app using bothAPK Signature Scheme v2 and the traditional signing scheme, which uses JAR signing.

Android 7.0 引入了 APK 签名方案 v2,这是一种新的应用签名方案,可提供更快的应用安装时间和更多保护,防止对 APK 文件进行未经授权的更改。默认情况下,Android Studio 2.2 和Android Plugin for Gradle 2.2 使用APK 签名方案 v2 和使用 JAR 签名的传统签名方案对您的应用程序进行签名。

It is recommendedto use APK Signature Scheme v2but is not mandatory.

这是推荐使用APK签名方案v2的,但不是强制性的

Although we recommend applying APK Signature Scheme v2 to your app, this new scheme is not mandatory. If your app doesn't build properly when using APK Signature Scheme v2, you can disable the new scheme.

尽管我们建议将 APK 签名方案 v2 应用于您的应用,但这种新方案不是强制性的。如果您的应用在使用 APK 签名方案 v2 时无法正确构建,您可以禁用新方案。