本文介绍了执行失败Process命令/ usr / lib目录/ JVM / java的8甲骨文/斌/ java的非零退出值2结束的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我跑在Android Studio中的一个应用程序,但我有这样一个错误:任务org.gradle.process.internal ExecException Process命令/ usr / lib目录/ JVM / java的8甲骨文/斌/ java的执行失败结束与非-Zero出口值2

我的软件和硬件信息

操作系统Ubuntu的= 15.04 KDE结果
开发工具=的Andr​​oid 1.3.2工作室搜索
CPU =英特尔酷睿i7 3610QM

的build.gradle

 应用插件:'com.android.application依赖{
    编译文件树(导演:'库',包括:的* .jar)
    编制项目(':flatButtonLibrary')
    编制项目(':ExpandableTextView')
    编制项目(':EditTextFormLibrary')
    编制项目(':RadioLibrary')
    编制项目(':SmoothProgressBar')
    编制项目(':TouchGalleryLibrary')
    编制项目(':CardIOLibrary')
    编制项目(':ViewPagerIndicatorLibrary')
    编制项目(':PlayServices5')
    编制项目(':SmoothProgressBarCircular')
    编译('com.android.support:appcompat-v7:23.0.1')}
安卓{
    compileSdkVersion 23
    buildToolsVersion23.0.1
    sourceSets {
        主要{
            manifest.srcFile'的Andr​​oidManifest.xml
            java.srcDirs = ['src'中]
            resources.srcDirs = ['src'中]
            aidl.srcDirs = ['src'中]
            renderscript.srcDirs = ['src'中]
            res.srcDirs = ['水库']
            assets.srcDirs = ['资产']
        }
        //移动测试,测试/ JAVA,测试/ RES等...
        instrumentTest.setRoot(测试)        //移动构建类型构建类型/<&型GT;
        //例如,建立类型/调试/ JAVA,内置类型/调试/ AndroidManifest.xml中,...
        //这个动作出来在src / LT他们默认位置和的;类型> / ...这将
        //与SRC /冲突正在使用的主要来源集。
        //添加新的构建类型或产品的口味应该陪同
        //通过类似定制。
        debug.setRoot(集结类型/调试)
        release.setRoot(集结类型/释放)
    }
}

更新问题的一部分:

 的例外是:
org.gradle.api.tasks.TaskExecutionException:执行失败的任务: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.ResetDe$p$pcationLogger.execute(ResetDe$p$pcationLogger.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)
org.gradle.internal.UncheckedException:引起com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:进程命令/ usr / lib目录/ JVM / JAVA-8 ORACLE /斌/ java的'非零退出值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更多
com.android.ide.common.process.ProcessException:引起org.gradle.process.internal.ExecException:进程命令/ usr / lib目录/ JVM / java的8甲骨文/斌/ java的'非完-Zero出口值2
    在com.android.build.gradle.internal.process.GradleProcessResult.assertNormalExitValue(GradleProcessResult.java:42)
    在com.android.builder.core.AndroidBuilder.convertByte code(AndroidBuilder.java:1276)
    在com.android.builder.core.AndroidBuilder $ convertByte code $ 1.call(来源不明)
    在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 $这$ 6 $ doTaskAction.callCurrent(来源不明)
    在com.android.build.gradle.tasks.Dex.taskAction(Dex.groovy:99)
    在org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
    ... 63更多
org.gradle.process.internal.ExecException:引起进程命令/ usr / lib目录/ JVM / java的8甲骨文/斌/ java的'非零退出值2结束
    在org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:365)
    在com.android.build.gradle.internal.process.GradleProcessResult.assertNormalExitValue(GradleProcessResult.java:40)
    ... 70更多


解决方案

我面对这个问题很多的时间和重新启动主要是在Android Studio的解决这个问题。

这篇关于执行失败Process命令/ usr / lib目录/ JVM / java的8甲骨文/斌/ java的非零退出值2结束的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-23 16:08