升级到 android studio 3.6 后出现 ApkProvisionException [英] ApkProvisionException after upgrading to android studio 3.6
问题描述
无法确定应用程序 ID:com.android.tools.idea.run.ApkProvisionException:变体的主要工件无输出:调试
Unable to determine application id: com.android.tools.idea.run.ApkProvisionException: No outputs for the main artifact of variant: debug
我的 build.gradle 文件中也有一个应用程序 ID,但我仍然收到此错误.有什么办法可以摆脱这种情况.
There is an application id in my build.gradle file too, but still I am getting this error. Is there any way to get rid of this.
推荐答案
我在使用最新版本的 Android Studio (3.6) 时遇到了同样的问题.我检查了一下,确实在我的项目的 app/build/outputs/apk/
文件夹中创建了 apk,我想现在您只需将 apk 从文件夹拖放到模拟器即可.
I have the same issue with the latest version of Android Studio (3.6). I checked and apk is indeed created in app/build/outputs/apk/
folder of my project and I guess for now you can just drag'n'drop apk from folder to emulator.
这篇关于升级到 android studio 3.6 后出现 ApkProvisionException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!