升级到 Android Studio Arctic Fox (2020.3.1) Canary 9 后。我无法运行测试。它弹出Edit Configurations
要显示的窗口Error: The app for your currently selected variant (Unknown output) is not signed. Please specify a signing configuration for this variant (debug).
信息。我似乎无法仅通过创建 .jks
来解决此问题。并使用调试变体的发布签名配置以及建议的大多数帖子。我在降级或尝试以某种方式解决它之间有点纠结。以前有人遇到过这个问题吗?欢迎任何建议和意见。
Problem still occurs in Android Studio Arctic Fox (2020.3.1) Canary 10 version as well.
最佳答案
这也发生在我身上,这可能是因为升级到 Gradle 7.0.0 后修改了默认签名配置。您可以在不降级 Gradle 的情况下解决此问题。去做这个,
转至文件菜单 > 项目结构 .
Step Reference Image 1
然后转到模块 部分
Step Reference Image 2
然后前往默认配置标签
Step Reference Image 3
向下滚动到 签名配置然后点击下拉菜单
Step Reference Image 4
选择 $signingConfigs.debug 从下拉列表中
Step Reference Image 5
点击申请 然后 好的然后再次运行您的应用程序。
这为我解决了这个问题。希望它也适合你。
关于android - 错误 : The apk for your currently selected variant (Unknown output) is not signed. 请为此变体指定签名配置(调试),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66579530/