android - Execution failed Process command /usr/lib/jvm/java-8-oracle/bin/java finished with non-zero exit value 2 -
i run application on android studio have error : execution failed task org.gradle.process.internal execexception process command /usr/lib/jvm/java-8-oracle/bin/java finished non-zero exit value 2
my software , hardware informations
operating system = ubuntu 15.04 kde
development tool = android studio 1.3.2
cpu = intel i7 3610qm
build.gradle
apply plugin: 'com.android.application' dependencies { compile filetree(dir: 'libs', include: '*.jar') compile project(':flatbuttonlibrary') compile project(':expandabletextview') compile project(':edittextformlibrary') compile project(':radiolibrary') compile project(':smoothprogressbar') compile project(':touchgallerylibrary') compile project(':cardiolibrary') compile project(':viewpagerindicatorlibrary') compile project(':playservices5') compile project(':smoothprogressbarcircular') compile ('com.android.support:appcompat-v7:23.0.1') } android { compilesdkversion 23 buildtoolsversion "23.0.1" 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') } }
updated question part :
exception is: org.gradle.api.tasks.taskexecutionexception: execution failed task ':kitapyurdulibrary:dexdebug'. @ org.gradle.api.internal.tasks.execution.executeactionstaskexecuter.executeactions(executeactionstaskexecuter.java:69) @ org.gradle.api.internal.tasks.execution.executeactionstaskexecuter.execute(executeactionstaskexecuter.java:46) @ org.gradle.api.internal.tasks.execution.postexecutionanalysistaskexecuter.execute(postexecutionanalysistaskexecuter.java:35) @ org.gradle.api.internal.tasks.execution.skipuptodatetaskexecuter.execute(skipuptodatetaskexecuter.java:64) @ org.gradle.api.internal.tasks.execution.validatingtaskexecuter.execute(validatingtaskexecuter.java:58) @ org.gradle.api.internal.tasks.execution.skipemptysourcefilestaskexecuter.execute(skipemptysourcefilestaskexecuter.java:42) @ org.gradle.api.internal.tasks.execution.skiptaskwithnoactionsexecuter.execute(skiptaskwithnoactionsexecuter.java:52) @ org.gradle.api.internal.tasks.execution.skiponlyiftaskexecuter.execute(skiponlyiftaskexecuter.java:53) @ org.gradle.api.internal.tasks.execution.executeatmostoncetaskexecuter.execute(executeatmostoncetaskexecuter.java:43) @ org.gradle.api.internal.abstracttask.executewithoutthrowingtaskfailure(abstracttask.java:310) @ org.gradle.execution.taskgraph.abstracttaskplanexecutor$taskexecutorworker.executetask(abstracttaskplanexecutor.java:79) @ org.gradle.execution.taskgraph.abstracttaskplanexecutor$taskexecutorworker.processtask(abstracttaskplanexecutor.java:63) @ org.gradle.execution.taskgraph.abstracttaskplanexecutor$taskexecutorworker.run(abstracttaskplanexecutor.java:51) @ org.gradle.execution.taskgraph.defaulttaskplanexecutor.process(defaulttaskplanexecutor.java:23) @ org.gradle.execution.taskgraph.defaulttaskgraphexecuter.execute(defaulttaskgraphexecuter.java:88) @ org.gradle.execution.selectedtaskexecutionaction.execute(selectedtaskexecutionaction.java:37) @ org.gradle.execution.defaultbuildexecuter.execute(defaultbuildexecuter.java:62) @ org.gradle.execution.defaultbuildexecuter.access$200(defaultbuildexecuter.java:23) @ org.gradle.execution.defaultbuildexecuter$2.proceed(defaultbuildexecuter.java:68) @ org.gradle.execution.dryrunbuildexecutionaction.execute(dryrunbuildexecutionaction.java:32) @ org.gradle.execution.defaultbuildexecuter.execute(defaultbuildexecuter.java:62) @ org.gradle.execution.defaultbuildexecuter.execute(defaultbuildexecuter.java:55) @ org.gradle.initialization.defaultgradlelauncher.dobuildstages(defaultgradlelauncher.java:149) @ org.gradle.initialization.defaultgradlelauncher.dobuild(defaultgradlelauncher.java:106) @ org.gradle.initialization.defaultgradlelauncher.run(defaultgradlelauncher.java:86) @ org.gradle.launcher.exec.inprocessbuildactionexecuter$defaultbuildcontroller.run(inprocessbuildactionexecuter.java:90) @ org.gradle.tooling.internal.provider.runner.buildmodelactionrunner.run(buildmodelactionrunner.java:54) @ org.gradle.launcher.exec.chainingbuildactionrunner.run(chainingbuildactionrunner.java:35) @ org.gradle.launcher.exec.inprocessbuildactionexecuter.execute(inprocessbuildactionexecuter.java:41) @ org.gradle.launcher.exec.inprocessbuildactionexecuter.execute(inprocessbuildactionexecuter.java:28) @ org.gradle.launcher.daemon.server.exec.executebuild.dobuild(executebuild.java:49) @ org.gradle.launcher.daemon.server.exec.buildcommandonly.execute(buildcommandonly.java:36) @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120) @ org.gradle.launcher.daemon.server.exec.watchfordisconnection.execute(watchfordisconnection.java:37) @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120) @ org.gradle.launcher.daemon.server.exec.resetdeprecationlogger.execute(resetdeprecationlogger.java:26) @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120) @ org.gradle.launcher.daemon.server.exec.requeststopifsingleuseddaemon.execute(requeststopifsingleuseddaemon.java:34) @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120) @ org.gradle.launcher.daemon.server.exec.forwardclientinput$2.call(forwardclientinput.java:74) @ org.gradle.launcher.daemon.server.exec.forwardclientinput$2.call(forwardclientinput.java:72) @ org.gradle.util.swapper.swap(swapper.java:38) @ org.gradle.launcher.daemon.server.exec.forwardclientinput.execute(forwardclientinput.java:72) @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120) @ org.gradle.launcher.daemon.server.health.daemonhealthtracker.execute(daemonhealthtracker.java:47) @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120) @ org.gradle.launcher.daemon.server.exec.logtoclient.dobuild(logtoclient.java:66) @ org.gradle.launcher.daemon.server.exec.buildcommandonly.execute(buildcommandonly.java:36) @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120) @ org.gradle.launcher.daemon.server.exec.establishbuildenvironment.dobuild(establishbuildenvironment.java:71) @ org.gradle.launcher.daemon.server.exec.buildcommandonly.execute(buildcommandonly.java:36) @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120) @ org.gradle.launcher.daemon.server.health.hintgcafterbuild.execute(hintgcafterbuild.java:41) @ org.gradle.launcher.daemon.server.api.daemoncommandexecution.proceed(daemoncommandexecution.java:120) @ org.gradle.launcher.daemon.server.exec.startbuildorrespondwithbusy$1.run(startbuildorrespondwithbusy.java:50) @ org.gradle.launcher.daemon.server.daemonstatecoordinator$1.run(daemonstatecoordinator.java:246) @ org.gradle.internal.concurrent.executorpolicy$catchandrecordfailures.onexecute(executorpolicy.java:54) @ org.gradle.internal.concurrent.stoppableexecutorimpl$1.run(stoppableexecutorimpl.java:40) caused by: org.gradle.internal.uncheckedexception: com.android.ide.common.process.processexception: org.gradle.process.internal.execexception: process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished non-zero exit value 2 @ org.gradle.internal.uncheckedexception.throwasuncheckedexception(uncheckedexception.java:45) @ org.gradle.internal.reflect.javamethod.invoke(javamethod.java:78) @ org.gradle.api.internal.project.taskfactory.annotationprocessingtaskfactory$incrementaltaskaction.doexecute(annotationprocessingtaskfactory.java:243) @ org.gradle.api.internal.project.taskfactory.annotationprocessingtaskfactory$standardtaskaction.execute(annotationprocessingtaskfactory.java:219) @ org.gradle.api.internal.project.taskfactory.annotationprocessingtaskfactory$incrementaltaskaction.execute(annotationprocessingtaskfactory.java:230) @ org.gradle.api.internal.project.taskfactory.annotationprocessingtaskfactory$standardtaskaction.execute(annotationprocessingtaskfactory.java:208) @ org.gradle.api.internal.tasks.execution.executeactionstaskexecuter.executeaction(executeactionstaskexecuter.java:80) @ org.gradle.api.internal.tasks.execution.executeactionstaskexecuter.executeactions(executeactionstaskexecuter.java:61) ... 57 more caused by: com.android.ide.common.process.processexception: org.gradle.process.internal.execexception: process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished non-zero exit value 2 @ com.android.build.gradle.internal.process.gradleprocessresult.assertnormalexitvalue(gradleprocessresult.java:42) @ com.android.builder.core.androidbuilder.convertbytecode(androidbuilder.java:1276) @ com.android.builder.core.androidbuilder$convertbytecode$1.call(unknown source) @ com.android.build.gradle.tasks.dex.dotaskaction(dex.groovy:165) @ com.android.build.gradle.tasks.dex.this$6$dotaskaction(dex.groovy) @ com.android.build.gradle.tasks.dex$this$6$dotaskaction.callcurrent(unknown source) @ com.android.build.gradle.tasks.dex.taskaction(dex.groovy:99) @ org.gradle.internal.reflect.javamethod.invoke(javamethod.java:75) ... 63 more caused by: org.gradle.process.internal.execexception: process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished non-zero exit value 2 @ org.gradle.process.internal.defaultexechandle$execresultimpl.assertnormalexitvalue(defaultexechandle.java:365) @ com.android.build.gradle.internal.process.gradleprocessresult.assertnormalexitvalue(gradleprocessresult.java:40) ... 70 more
i faced issue many time , restarting android studio resolve this.
got file > invalidate cache & restart
Comments
Post a Comment