错误:您当前选择的变体(未知输出)的 apk 未签名.请为此变体指定签名配置(调试) [英] Error: The apk for your currently selected variant (Unknown output) is not signed. Please specify a signing configuration for this variant (debug)

查看:114
本文介绍了错误:您当前选择的变体(未知输出)的 apk 未签名.请为此变体指定签名配置(调试)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

升级到 Android Studio Arctic Fox (2020.3.1) Canary 9 后.我无法运行我的测试.它会弹出 Edit Configurations 窗口以显示 Error: The apk for your current selected variant (Unknown output) is not signed.请为此变体指定签名配置(调试). 消息.我似乎无法通过创建 .jks 并像大多数建议的帖子一样使用发布签名配置来解决这个问题.我有点犹豫是降级还是尝试以某种方式解决它.有没有人以前遇到过这个问题?欢迎提出任何建议和意见.

After upgrading to Android Studio Arctic Fox (2020.3.1) Canary 9. I cannot run my tests. It pops up the Edit Configurations window to show Error: The apk for your currently selected variant (Unknown output) is not signed. Please specify a signing configuration for this variant (debug). message. I can't seem to solve this issue just by creating .jks and use the release signing configuration for debug variant as well like most of the posts suggested. I kinda stuck between whether I downgrade or try to solve it somehow. Is there anyone who faced this issue before? Any suggestions and opinions are welcomed.

Android Studio Arctic Fox (2020.3.1) Canary 10 版本同样存在问题.

Problem still occurs in Android Studio Arctic Fox (2020.3.1) Canary 10 version as well.

推荐答案

Android Gradle Plugin (AGP) 高于 7.0.0-alpha08 时出现问题.所以降级到 7.0.0-alpha08 解决了这个问题.这样做,您还必须降级到Android Studio Arctic Fox (2020.3.1) Canary 8,因为更高版本需要相应的AGP 或最新版本.我对降级解决方案不满意.但这是目前运行测试的唯一方法.

The problem occurs if Android Gradle Plugin (AGP) is higher than 7.0.0-alpha08. So downgrading to 7.0.0-alpha08 solves the problem. By doing so, you must also downgrade to Android Studio Arctic Fox (2020.3.1) Canary 8 because later versions require their corresponding AGP or the latest one. I'm not happy with the downgrade solution. But this is the only way for the tests to run at the moment.

Android Studio 档案

这篇关于错误:您当前选择的变体(未知输出)的 apk 未签名.请为此变体指定签名配置(调试)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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