title: i am getting this error some time while running android app on android studio?
body: <p>I am getting this error while running the app.And this happens only few times.i am not getting what is causing problem.Can anybody provide me solution?the error is given below.</p>
  
  <pre><code>'command 'C:\Program Files\Java\jdk1.8.0_40\bin\java.exe'' finished with non-zero exit value 2
  </code></pre>
  
  <p>and my build.gragle file
      apply plugin: 'com.android.application'</p>
  
  <p>android {
      compileSdkVersion 23
      buildToolsVersion "23.0.1"</p>
  
  <pre><code>}
  
  
  defaultConfig {
      applicationId "com.eagleeye.retailapp"
      minSdkVersion 14
      targetSdkVersion 22
      multiDexEnabled true
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_7
          targetCompatibility JavaVersion.VERSION_1_7
      }
  }
  
  buildTypes {
      release {
          minifyEnabled false
          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
      }
  }
  </code></pre>
  
  <p>}</p>
  
  <p>dependencies {</p>
  
  <pre><code>compile files('libs/acra-4.6.1.jar')
  compile files('libs/itext-pdfa-5.5.6.jar')
  compile files('libs/itextpdf-5.5.6.jar')
  compile files('libs/nineoldandroids-2.4.0.jar')
  compile files('libs/poi-3.11-20141221.jar')
  compile files('libs/ProwessPride_V1.01.jar')
  compile files('libs/org.apache.http.legacy.jar')
  compile 'com.android.support:appcompat-v7:23.1.1'
  compile 'com.android.support:cardview-v7:23.1.1'
  compile 'com.android.support:palette-v7:23.1.1'
  compile 'com.android.support:recyclerview-v7:23.1.1'
  compile 'com.android.support:design:23.1.1'
  compile 'com.android.support:support-v4:23.1.1'
  compile 'com.yqritc:recyclerview-flexibledivider:1.2.6'
  compile 'com.loopj.android:android-async-http:1.4.9'
  compile 'com.android.support:support-annotations:23.1.1'
  compile 'com.github.bumptech.glide:glide:3.5.2'
  </code></pre>
  
  <p>}</p>
  
  <p>and my java runtime environment is set to java1.8.0
  Please somebody help me.I am having a deployment date near.</p>