在 Android Studio 中生成签名的 APK 时签名版本 - V1(Jar 签名)和 V2(完整 APK 签名)之间的区别? [英] Difference between signature versions - V1 (Jar Signature) and V2 (Full APK Signature) while generating a signed APK in Android Studio?

查看:107
本文介绍了在 Android Studio 中生成签名的 APK 时签名版本 - V1(Jar 签名)和 V2(完整 APK 签名)之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

现在在 Android Studio 中生成签名 APK 时,它显示两个选项 (CheckBox),即 1. V1 (Jar Signature) 和 2. V2 (Full APK Signature) 作为签名 APK 生成过程的最后一步中的签名版本.

Now while generating a signed APK in Android Studio, it's showing two options (CheckBox) namely 1. V1 (Jar Signature) and 2. V2 (Full APK Signature) as Signature Versions in the last step of signed APK generating process.

那么,在新的 Android Studio 更新中,V1(Jar 签名)V2(完整 APK 签名) 之间有什么区别?

So, what is the difference between V1 (Jar Signature) and V2 (Full APK Signature) in the new Android Studio update?

我应该使用哪个(或两者)为 Play 商店发布签名 apk?

And which should I use (or both) for signing apk for play store release?

此外,当我使用第二个选项时,在安装 APK 时出现错误 Install Parse Failed No Certificates.

Also, I'm getting error Install Parse Failed No Certificates while installing APK when I use the second option.

推荐答案

它是 Android 7.0 中引入的新签名机制,具有旨在使 APK 签名更安全的附加功能.

It is a new signing mechanism introduced in Android 7.0, with additional features designed to make the APK signature more secure.

这不是强制性的.如果可能,您应该选中这两个复选框,但如果新的 V2 签名机制给您带来问题,您可以省略它.

It is not mandatory. You should check BOTH of those checkboxes if possible, but if the new V2 signing mechanism gives you problems, you can omit it.

因此,如果遇到问题,您可以不选中 V2,但应尽可能检查它.

So you can just leave V2 unchecked if you encounter problems, but should have it checked if possible.

更新:现在在面向 Android 11 时这是必需的.

UPDATED: This is now mandatory when targeting Android 11.

这篇关于在 Android Studio 中生成签名的 APK 时签名版本 - V1(Jar 签名)和 V2(完整 APK 签名)之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆