在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?

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

问题描述

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

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

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(Full 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时出现错误安装解析失败没有证书.

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天全站免登陆