Android Studio:无法选择签名版本 [英] Android studio : Can not choose signature version

查看:197
本文介绍了Android Studio:无法选择签名版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用V1和我的应用程序构建我的应用程序V2签名版本.但是他们两个都是灰色的.谁能告诉我如何使其可供选择?[生成签名]

I want to build my app with V1 & V2 signature version. But both of them are greyed out. Can anyone please tell me how to make it avaiable to choose? [generate signature]

推荐答案

官方文件

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

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 both APK Signature Scheme v2 and the traditional signing scheme, which uses JAR signing.

因此,请确保将 android studio 和模块的 gradle插件(build.gradle-> com.android.tools.build:gradle)更新为 2.3及以上.

So be sure that the android studio and the gradle plugin of module(build.gradle->com.android.tools.build:gradle) are updated to 2.3 and above.

这篇关于Android Studio:无法选择签名版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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