android - How to solve Process 'command 'C:\Program Files\Java\jdk1.8.0_31\bin\java.exe'' finished with non-zero exit value 2 -


i created 1 project in eclipse mars,then gradle project , import android studio,in project not find issue,but when run application,it shows following error,and running process got stopped

error

process 'command 'c:\program files\java\jdk1.8.0_31\bin\java.exe'' finished non-zero exit value 2 

myproject.gradle file

apply plugin: 'com.android.application'  dependencies {     compile filetree(dir: 'libs', include: '*.jar')     compile project(':android-support-v7-appcompat')     compile project(':google-play-services_lib')     compile project(':facebooksdk') }  android {     compilesdkversion 21     buildtoolsversion "21.1.2"     compileoptions {         sourcecompatibility javaversion.version_1_7         targetcompatibility javaversion.version_1_7     }      sourcesets {         main {             manifest.srcfile 'androidmanifest.xml'             java.srcdirs = ['src']             resources.srcdirs = ['src']             aidl.srcdirs = ['src']             renderscript.srcdirs = ['src']             res.srcdirs = ['res']             assets.srcdirs = ['assets']         }           instrumenttest.setroot('tests')           debug.setroot('build-types/debug')         release.setroot('build-types/release')     } } 

facebooksdk.gradlefile

apply plugin: 'com.android.library'  dependencies {     compile filetree(dir: 'libs', include: '*.jar') }  android {     compilesdkversion 17     buildtoolsversion "21.1.2"      sourcesets {         main {             manifest.srcfile 'androidmanifest.xml'             java.srcdirs = ['src']             resources.srcdirs = ['src']             aidl.srcdirs = ['src']             renderscript.srcdirs = ['src']             res.srcdirs = ['res']             assets.srcdirs = ['assets']         }           debug.setroot('build-types/debug')         release.setroot('build-types/release')     } } 

android-support-v7-appcombat gradlefile

apply plugin: 'com.android.library'  dependencies {     compile filetree(dir: 'libs', include: '*.jar') }  android {     compilesdkversion 19     buildtoolsversion "21.1.2"      sourcesets {         main {             manifest.srcfile 'androidmanifest.xml'             java.srcdirs = ['src']             resources.srcdirs = ['src']             aidl.srcdirs = ['src']             renderscript.srcdirs = ['src']             res.srcdirs = ['res']             assets.srcdirs = ['assets']         }          // move tests tests/java, tests/res, etc...         instrumenttest.setroot('tests')          // move build types build-types/<type>         // instance, build-types/debug/java, build-types/debug/androidmanifest.xml, ...         // moves them out of them default location under src/<type>/...         // conflict src/ being used main source set.         // adding new build types or product flavors should accompanied         // similar customization.         debug.setroot('build-types/debug')         release.setroot('build-types/release')     } } 

google-play-service gradlefile

apply plugin: 'com.android.library'  dependencies {     compile filetree(dir: 'libs', include: '*.jar') }  android {     compilesdkversion 17     buildtoolsversion "21.1.2"      sourcesets {         main {             manifest.srcfile 'androidmanifest.xml'             java.srcdirs = ['src']             resources.srcdirs = ['src']             aidl.srcdirs = ['src']             renderscript.srcdirs = ['src']             res.srcdirs = ['res']             assets.srcdirs = ['assets']         }          // move tests tests/java, tests/res, etc...         instrumenttest.setroot('tests')          // move build types build-types/<type>         // instance, build-types/debug/java, build-types/debug/androidmanifest.xml, ...         // moves them out of them default location under src/<type>/...         // conflict src/ being used main source set.         // adding new build types or product flavors should accompanied         // similar customization.         debug.setroot('build-types/debug')         release.setroot('build-types/release')     } } 

myworkspacename gradlefile

buildscript {     repositories {         jcenter()     }     dependencies {         classpath 'com.android.tools.build:gradle:1.2.3'     } } 

same kind of problem : may check

  1. java finished non-zero exit value 2 - android gradle
  2. java.exe finished non-zero exit value 2 when using facebook sdk
  3. android gradle (java finished non-zero exit value 2)
  4. android java.exe finished non-zero exit value 1

Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -