Unable to determine application id: com.android.tools.idea.run.ApkProvisionException: No outputs for the main artifact of variant code example
Example: Unable to determine application id: com.android.tools.idea.run.ApkProvisionException: No outputs for the main artifact of variant: debug
First clean your project by
Build-> Clean project
Then rebuild project
Build->Rebuild project
Then run you project. I hope this will work.
if not then go to
File->Invalidate Cashes /restart-> Invalidate and restart