gpt4 book ai didi

android - 如何修复 'Unable to determine application id: com.android.tools.idea.run.ApkProvisionException: No outputs for the main artifact of variant:'

转载 作者:行者123 更新时间:2023-12-01 16:33:46 25 4
gpt4 key购买 nike

我正在尝试运行选定的构建变体,但在“运行”选项卡中出现以下错误,

Unable to determine application id: com.android.tools.idea.run.ApkProvisionException: No outputs for the main artifact of variant: madhyapradesh-debug

请提出解决方案。

最佳答案

首先通过以下方式清理您的项目

Build -> Clean project

然后重建项目

Build -> Rebuild project

然后运行您的项目。我希望这会起作用。

如果没有,则转到

File -> Invalidate Caches / Restart -> Invalidate and restart

最后一个选项是您可以再次同步 Gradle,以防万一不起作用

关于android - 如何修复 'Unable to determine application id: com.android.tools.idea.run.ApkProvisionException: No outputs for the main artifact of variant:',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56440572/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com