How to fix 'Unable to determine application id: com.android.tools.idea.run.ApkProvisionException: No outputs for the main artifact of variant:'
问题 I am trying to run a selected build variant but giving me following error in Run tab, Unable to determine application id: com.android.tools.idea.run.ApkProvisionException: No outputs for the main artifact of variant: madhyapradesh-debug So kindly suggest the solution to it. 回答1: For me the solution was apparently to update the Gradle plugin... 回答2: Ensure that your have set applicationId "com.example.myapp" in your build.gradle android { ... defaultConfig { applicationId "com.example.myapp"