gradle 插件 2.3.0 发布 INSTALL_PARSE_FAILED_NO_CERTIFICATES

gradle plugin 2.3.0 realease INSTALL_PARSE_FAILED_NO_CERTIFICATES

当我使用 2.3.0 gradle 插件(和 V2 签名)发布应用程序并安装时,应用程序导致 INSTALL_PARSE_FAILED_NO_CERTIFICATES 错误,同时将 gradle 插件版本降级到 2.2.3 解决了这个问题!那么问题来自哪里呢? gradle插件版本? V2签名?击键(那是我的整个应用程序键,当然不能更改)?任何错误?有什么事吗?

我还检查了一个空的项目示例,INSTALL_PARSE_FAILED_NO_CERTIFICATES 存在!

根据 v2 signing page:

The new format is backwards compatible, so APKs signed with the new signature format can be installed on older Android devices (which simply ignore the extra data added to the APK), as long as these APKs are also v1-signed.

您应该同时使用 v1 和 v2 签名(作为 v2 签名 offer faster install times on Android 7.0+ devices