zoukankan      html  css  js  c++  java
  • Unable to determine application id: com.android.tools.idea.run.ApkProvisionException: No outputs for the main artifact of variant: debug

    前言

    遇到这种情况极大可能属于gradle 与 android studio版本不匹配的情况。

    因为我是在升级android studio遇到的这个问题。

    方法

    一个方法是:降低android studio。

    第二个方法:升级gradle。

    修改gradle是个大工程。

    后来我在网上找了一个缓冲方案:

    保持项目gradle插件版本不变,修改Run/Debug configurations
    
    截图里红色第2条新增gradle task时,点击 + 会新弹出对话框,只需要编辑对话框中前2项即可。
    
    注意对话框中第2项,输入install时,AS会有对应提示。
    
    第二项Tasks填写installDebug,手动输入时studio会有提示
    

  • 相关阅读:
    合并字符串中的多个空格
    IfcSpecularRoughness
    IfcSpecularExponent
    IfcPresentableText
    IfcFontWeight
    IfcFontVariant
    uwb ifc模型定位測試
    IfcFontStyle
    IfcGeometricModelResource
    qt6安装
  • 原文地址:https://www.cnblogs.com/aoximin/p/12785161.html
Copyright © 2011-2022 走看看