title: Process 'command 'C:\Program Files\Java\jdk1.8.0_25\bin\java.exe'' finished with non-zero exit value 2
body: <p>i've some error with my project. I'm Android beginner.
  When I try to compile my app I get a following error</p>
  
  <blockquote>
    <p>Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
    com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_25\bin\java.exe'' finished with non-zero exit value 2</p>
  </blockquote>
  
  <p>I'm using Parse SDK for login with Facebook,but in this moment,i've only this code in my app:</p>
  
  <pre><code> protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      // [Optional] Power your app with Local Datastore. For more info, go to
      // https://parse.com/docs/android/guide#local-datastore
      Parse.enableLocalDatastore(this);
  
      Parse.initialize(this);
  </code></pre>
  
  <p>my build.gradle is:</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
  compileSdkVersion 23
  buildToolsVersion "23.0.2"
  
  defaultConfig {
      applicationId "com.example.daniele.myapplication"
      minSdkVersion 15
      targetSdkVersion 23
      versionCode 1
      versionName "1.0"
  }
  
  
    buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      testCompile 'junit:junit:4.12'
      compile 'com.android.support:appcompat-v7:23.1.1'
      compile 'com.parse.bolts:bolts-android:1.+'
      compile 'com.parse:parse-android:1.+'
    }
  </code></pre>
  
  <p>How can I solve it?
  First answer of this doesn't work for me: <a href="https://stackoverflow.com/questions/29028705/java-exe-finished-with-non-zero-exit-value-2-when-using-facebook-sdk">java.exe finished with non-zero exit value 2 when using Facebook SDK</a>
  Many thanks.</p>
  
  <p>EDIT:
  I solved it,for now.
  I deleted 'com.parse:parse-android:1.+' from dependecies and it works.
  I don't know why,but in the parse's tutorial,it suggest to add all of this dependencies</p>