构建
keytool签名检测失败¶
keytool -printcert -jarfile xxx.apk- https://github.com/flutter/flutter/issues/62941#issuecomment-726736302
- https://github.com/flutter/flutter/issues/62941#issuecomment-869608014
- 原因:APK Signature Scheme版本不一样
- flutter默认v2签名,keytool通常是v1签名,如果需要兼容v1,把v1也开启即可
- 不过v1、v2同时启用时,apksigner verify仅检测出v2,而没有v1
- android7开始要求最低v2
- 在签名配置多加:
v1SigningEnabled true- 默认情况下,
v2SigningEnabled true
- 默认情况下,
- v1、v2同时开启,先签v1,再签v2,可兼容Android7以下的版本
- https://source.android.com/docs/security/features/apksigning/v2?hl=zh-cn