title: Unable to determine application id: com.android.tools.idea.run.ApkProvisionException
body: <p>When I try run my Android application after upgrading Android Studio, I get this error </p>
  
  <p>'Unable to determine application id: com.android.tools.idea.run.ApkProvisionException: No outputs for the main artifact of variant: debug'</p>
  
  <p>I tried in run/debug configuration change deploy to 'Nothing' then I get error for some class doesn't exist.</p>
  
  <p>This is my build.gradle file, please look at it and tell me what is your opinions.</p>
  
  <pre><code>apply plugin: 'com.android.application'
  apply plugin: 'android-apt'
  def AAVersion = '4.0.0'
  
  dependencies {
     apt "org.androidannotations:androidannotations:$AAVersion"
     compile "org.androidannotations:androidannotations-api:$AAVersion"
  }
  
  apt {
    arguments {
      androidManifestFile variant.outputs[0].processResources.manifestFile
  
      resourcePackageName android.defaultConfig.applicationId
  
   }
  }
  
  
  android {
    compileSdkVersion 23
    buildToolsVersion '25.0.0'
  
  defaultConfig {
      applicationId "bg.isic.myisicapp"
      minSdkVersion 14
      targetSdkVersion 23
      versionCode 25
      versionName "1.4.5"
  }
  buildTypes {
      release {
          minifyEnabled true
          proguardFile 'proguard-android-annotations.pro'
          proguardFile 'proguard-android-gif-drawable.pro'
          proguardFile 'proguard-eventbus.pro'
          proguardFile 'proguard-gson.pro'
          proguardFile 'proguard-guava.pro'
          proguardFile 'proguard-retrofit.pro'
          proguardFile 'proguard-rules.pro'
          proguardFile getDefaultProguardFile('proguard-android.txt')
      }
    }
   }
  
  dependencies {
    compile 'pl.droidsonroids.gif:android-gif-drawable:1.1.3'
    compile 'uk.co.chrisjenx:calligraphy:2.0.2'
    compile 'de.greenrobot:eventbus:2.4.0'
    compile 'com.commonsware.cwac:layouts:0.4.2'
    compile 'com.squareup.retrofit:retrofit:1.9.0'
    compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.3'
    compile 'com.google.zxing:core:3.2.0'
    compile 'com.google.android.gms:play-services-gcm:9.0.0'
    compile 'com.google.android.gms:play-services-location:9.0.0'
    compile 'com.android.support:support-v4:23.4.0'
    compile 'com.squareup.picasso:picasso:2.3.2'
    compile 'com.nineoldandroids:library:2.4.0'
    compile 'com.daimajia.slider:library:1.1.5@aar'
    compile 'rongi.rotate-layout:rotate-layout:2.0.0'
    compile 'com.android.support:design:23.4.0'
    compile('com.theartofdev.edmodo:android-image-cropper:2.3.1') {
      exclude module: 'support-v4';
      exclude module: 'appcompat-v7'
  }
  compile 'com.android.support:appcompat-v7:23.4.0'
  compile 'com.android.support:cardview-v7:23.4.0'
  compile 'com.android.support.constraint:constraint-layout:1.0.2'
  compile 'org.parceler:parceler-api:1.1.9'
  apt 'org.parceler:parceler:1.1.9'
  }
  apply plugin: 'com.google.gms.google-services'
  dependencies {
   compile 'com.google.firebase:firebase-core:9.0.0'
   }
  </code></pre>
  
  <p>Anyone help ?</p>