transformClassesWithMultidexlist

transformClassesWithMultidexlist

本文介绍了获取错误:任务应用程序的执行失败:transformClassesWithMultidexlistForDebug的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我在其他主题上几乎尝试了所有内容,但我在我的RSS阅读器应用程序中遇到了同样的问题。我该如何解决? 我收到此错误: i'已更新AS到2.12,java sdk最新版本。 我已禁用即时运行 我是试过清理项目 我安装了HAXM 在我的app build.gradle文件中: apply plugin:'com.android.application' android { compileSdkVersion 23 buildToolsVersion24.0.0 dexOptions { incremental = true; preDexLibraries = false javaMaxHeapSize4g} defaultConfig { multiDexEnabled true applicationIdcom.vbo。 xxx minSdkVersion 15 targetSdkVersion 23 versionCode 1 versionName1.0 multiDexEnabled true } buildTypes {发布{ minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro'} } } 依赖项{ 编译fileTree(dir:'libs',包含:['* .jar']) testCompile'junit:junit:4.12' compile' com.android.support:appcompat-v7:23.4.0' compile'c​​om.android.support:design:23.4.0' compile'c​​om.android.support:multidex:1.0.1'在build.gradle项目中, : //顶级构建文件,您可以在其中添加配置选项ns对所有子项目/模块都是通用的。 buildscript { repositories { jcenter()} dependencies { classpath'com.android.tools.build:gradle: 2.1.2' //注意:不要在此处放置应用程序依赖项;它们在单个模块build.gradle文件中属于 // } } allprojects { repositories { jcenter()} } 任务清理(类型:删除){删除rootProject.buildDir } Android Manifest xml文件: <?xml version =1.0encoding =utf-8?> < uses-permission android:name =android.permission.INTERNET/> < application android:name =android.support.multidex.MultiDexApplication android:allowBackup =true android:icon =@ mipmap / ic_launcher android:label =@ string / app_name android:supportsRtl =true android:theme =@ style / AppTheme> < activity android:name =。MainActivity android:label =@ string / app_name android:theme =@ style / AppTheme.NoActionBar> ; < intent-filter> < action android:name =android.intent.action.MAIN/> < category android:name =android.intent.category.LAUNCHER/> < / intent-filter> < / activity> < / application> 编译器 - 信息: 失败:构建失败并出现异常。 出了什么问题:任务执行失败':app:transformClassesWithMultidexlistForDebug'。 尝试:使用--info或--debug选项运行以获得更多日志输出。 异常是: org.gradle.api.tasks.TaskExecutionException:任务':app:transformClassesWithMultidexlistForDebug'的执行失败。 at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter。 java:46) at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35) at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter。执行(SkipUpToDateTaskExecuter.java:64) org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58) at org.gradle.api.internal.tasks。 execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52) at org.gradle.api。 internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53) at org.gradle.api.intern al.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter $ EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203) at org.gradle。 execution.taskgraph.DefaultTaskGraphExecuter $ EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185) at org.gradle.execution.taskgraph.Abs​​tractTaskPlanExecutor $ TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:66) at org.gradle。 execution.taskgraph.Abs​​tractTaskPlanExecutor $ TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:25) at org.gradle.execution。 taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:110) at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter。 java的:37)。在org.gradle.execution.DefaultBuildExecuter.access $ 000(DefaultBuildExecuter.java:23)$ B $在org.gradle.execution.DefaultBuildExecuter $ 1.proceed(DefaultBuildExecuter.java:43) b org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37) at org.gradle.execution。 DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30) at org.gradle.initialization.DefaultGradleLauncher $ 4.run(DefaultGradleLauncher.java:154) at org.gradle.internal.Factories $ 1.create(Factories。 java:22) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:52) at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:151) at org.gradle.initialization.DefaultGradleLauncher。访问$ 200(DefaultGradleLauncher.java:32) org.gradle.initialization.DefaultGradleLauncher $ 1.create(DefaultGradleLauncher.java:99) at org.gradle.initialization.DefaultGradleLauncher $ 1.create(DefaultGradleLauncher.java) :93) org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62) at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:93) at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:82) at org.gradle。 launcher.exec.InProcessBuildActionExecuter $ DefaultBuildController.run(InProcessBuildActionExecuter.java:94) at org.gradle.tooling.internal.provider.runner.BuildModelActionRunner.run(BuildModelActionRunner.java:46) at org。 gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35) at org.gradle.tooli ng.internal.provider.runner.SubscribableBuildActionRunner.run(SubscribableBuildActionRunner.java:58) at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35) at org.gradle。 launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:43) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28) at org.gradle.launcher.exec。 ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:78) at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:48) at org.gradle.launcher.daemon.server.exec。 ExecuteBuild.doBuild(ExecuteBuild.java:52)处org.gradle.launcher.daemon org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)。 server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.WatchForDisconnectio n.execute(WatchForDisconnection.java:37) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon。 server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)处org.gradle org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)。 launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.ForwardClientInput $ 2.call(ForwardClientInput.java:74)在org.gradle.launcher.daemon.server.exec.ForwardClientInput $ 2.call(ForwardClientInput.java:72 ) at org.gradle.util.Swapper.swap(Swapper.java:38) at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72) at org.gradle.launcher.daemon.se rver.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)处org.gradle org.gradle.launcher.daemon.server.health.DaemonHealthTracker.execute(DaemonHealthTracker.java:47)。 launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:66) at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:72) at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java :36) org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.health.HintGCAfterBuild.execute (HintGCAfterBuild。 java:41) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy $ 1 .run(StartBuildOrRespondWithBusy.java:50) at org.gradle.launcher.daemon.server.DaemonStateCoordinator $ 1.run(DaemonStateCoordinator.java:246) at org.gradle.internal.concurrent.ExecutorPolicy $ CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54) at org.gradle.internal.concurrent.StoppableExecutorImpl $ 1.run(StoppableExecutorImpl.java:40)引起:java.lang.RuntimeException:com.android .build.api.transform.TransformException:com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:流程 '命令' C:\Program Files\Java\jdk1.7.0_79 \ bin\java.exe''在com.android.builder.profile.Recorder上以非零退出值1 结束$ Block.handleException(Recorder.java:54) at com。 android.builder.profile.Threa dRecorder $ 1.record(ThreadRecorder.java:57) at com.android.builder.profile.ThreadRecorder $ 1.record(ThreadRecorder.java:47) at com.android.build.gradle.internal。 pipeline.TransformTask.transform(TransformTask.java:173) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75) at org.gradle.api.internal.project。 taskfactory.AnnotationProcessingTaskFactory $ IncrementalTask​​Action.doExecute(AnnotationProcessingTaskFactory.java:244) at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory $ StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:220) at org。 gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory $ IncrementalTask​​Action.execute(AnnotationProcessingTaskFactory.java:231) at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory $ StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:209 ) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execu teAction(ExecuteActionsTaskExecuter.java:80) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61) ... 70 more 由:com.android.build.api.transform.TransformException:com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:进程'命令'C:\Program Files\Java \ jdk1.7.0_79\bin\java.exe '' 在com.android.build.gradle.internal.transforms.MultiDexTransform.transform(MultiDexTransform.java:148)$具有非零退出值1个结束b $ b。在com.android.build.gradle.internal.pipeline.TransformTask $ 3.call(TransformTask.java:178)$ b $在com.android.build.gradle.internal.pipeline.TransformTask $ 3.call b(TransformTask .java:174) at com.android.builder.profile.ThreadRecorder $ 1.record(ThreadRecorder.java:55) ... 79 more 引起:com.android.ide .common.process.ProcessException:org.gradle.process.internal.ExecException:Proces s'命令'C:\ Program Files \Java \ jdk1.7.0_79 \ bin\java.exe''在com.android.build.gradle中以非零退出值1 结束。 internal.process.GradleProcessResult.assertNormalExitValue(GradleProcessResult.java:43)处com.android.build.gradle com.android.builder.core.AndroidBuilder.createMainDexList(AndroidBuilder.java:1690)。 internal.transforms.MultiDexTransform.callDx(MultiDexTransform.java:244) at com.android.build.gradle.internal.transforms.MultiDexTransform.computeList(MultiDexTransform.java:211) at com.android。 build.gradle.internal.transforms.MultiDexTransform.transform(MultiDexTransform.java:144) ... 82更多引起:org.gradle.process.internal.ExecException:处理'命令'C: \Program Files\Java\jdk1.7.0_79\bin\java.exe '' 在org.gradle.process.internal.DefaultExecHandle $ ExecResultImpl.assertNormalExitValue具有非零退出值1个结束( DefaultExecHandle.java:367) at com.android.build.gradle.internal.process.GradleProcessResult.assertNormalExitValue(GradleProcessResult.java:41) ... 86 more 建立失败 总时间:2.247秒解决方案首先确保在您的Project No Duplicate库中存在。然后尝试下面的事情。 将此添加到 build.gradle 文件中。 compileOptions { sourceCompatibility JavaVersion.VERSION_1_7 targetCompatibility JavaVersion.VERSION_1_7 } i've tried nearly everything at other topics but i have the same problem in my rss reader app. How can i fix it?i'm getting this error:i've updated AS to 2.12, java sdk latest version.i've disabled instant runi've tried cleanup projecti've installed HAXMIn my app build.gradle file:apply plugin: 'com.android.application'android {compileSdkVersion 23buildToolsVersion "24.0.0"dexOptions { incremental = true; preDexLibraries = false javaMaxHeapSize "4g"}defaultConfig { multiDexEnabled true applicationId "com.vbo.xxx" minSdkVersion 15 targetSdkVersion 23 versionCode 1 versionName "1.0" multiDexEnabled true}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.4.0'compile 'com.android.support:design:23.4.0'compile 'com.android.support:multidex:1.0.1'}in build.gradle project:// Top-level build file where you can add configuration options common to all sub-projects/modules.buildscript { repositories { jcenter()}dependencies { classpath 'com.android.tools.build:gradle:2.1.2' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files}}allprojects {repositories { jcenter()}}task clean(type: Delete) {delete rootProject.buildDir}Android Manifest xml file:<?xml version="1.0" encoding="utf-8"?><uses-permission android:name="android.permission.INTERNET"/><application android:name="android.support.multidex.MultiDexApplication" android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/AppTheme"> <activity android:name=".MainActivity" android:label="@string/app_name" android:theme="@style/AppTheme.NoActionBar"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity></application>complier --info:FAILURE: Build failed with an exception.What went wrong:Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.Try:Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.BUILD FAILEDTotal time: 2.574 secsStopped 0 compiler daemon(s).complier --stacktrace:Executing tasks: [:app:assembleDebug]Configuration on demand is an incubating feature.Incremental java compilation is an incubating feature.:app:preBuild UP-TO-DATE:app:preDebugBuild UP-TO-DATE:app:checkDebugManifest:app:preReleaseBuild UP-TO-DATE:app:prepareComAndroidSupportAnimatedVectorDrawable2340Library UP-TO-DATE:app:prepareComAndroidSupportAppcompatV72340Library UP-TO-DATE:app:prepareComAndroidSupportDesign2340Library UP-TO-DATE:app:prepareComAndroidSupportMultidex101Library UP-TO-DATE:app:prepareComAndroidSupportRecyclerviewV72340Library UP-TO-DATE:app:prepareComAndroidSupportSupportV42340Library UP-TO-DATE:app:prepareComAndroidSupportSupportVectorDrawable2340Library UP-TO-DATE:app:prepareDebugDependencies:app:compileDebugAidl UP-TO-DATE:app:compileDebugRenderscript UP-TO-DATE:app:generateDebugBuildConfig UP-TO-DATE:app:mergeDebugShaders UP-TO-DATE:app:compileDebugShaders UP-TO-DATE:app:generateDebugAssets UP-TO-DATE:app:mergeDebugAssets UP-TO-DATE:app:generateDebugResValues UP-TO-DATE:app:generateDebugResources UP-TO-DATE:app:mergeDebugResources UP-TO-DATE:app:processDebugManifest UP-TO-DATE:app:processDebugResources UP-TO-DATE:app:generateDebugSources UP-TO-DATE:app:incrementalDebugJavaCompilationSafeguard UP-TO-DATE:app:compileDebugJavaWithJavac UP-TO-DATE:app:compileDebugNdk UP-TO-DATE:app:compileDebugSources UP-TO-DATE:app:prePackageMarkerForDebug:app:transformClassesWithJarMergingForDebug UP-TO-DATE:app:collectDebugMultiDexComponents UP-TO-DATE:app:transformClassesWithMultidexlistForDebugProGuard, version 5.2.1Reading program jar [D:\Android\HerGun1Hadis\app\build\intermediates\transforms\jarMerging\debug\jars\1\1f\combined.jar]Reading library jar [C:\Users\burak\AppData\Local\Android\sdk\build-tools\24.0.0\lib\shrinkedAndroid.jar]Preparing output jar [D:\Android\HerGun1Hadis\app\build\intermediates\multi-dex\debug\componentClasses.jar] Copying resources from program jar [D:\Android\HerGun1Hadis\app\build\intermediates\transforms\jarMerging\debug\jars\1\1f\combined.jar]:app:transformClassesWithMultidexlistForDebug FAILEDFAILURE: Build failed with an exception.What went wrong:Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.Try:Run with --info or --debug option to get more log output.Exception is:org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52)at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203)at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185)at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:66)at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50)at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:25)at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:110)at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23)at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43)at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30)at org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLauncher.java:154)at org.gradle.internal.Factories$1.create(Factories.java:22)at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:52)at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:151)at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32)at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:99)at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:93)at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62)at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:93)at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:82)at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:94)at org.gradle.tooling.internal.provider.runner.BuildModelActionRunner.run(BuildModelActionRunner.java:46)at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)at org.gradle.tooling.internal.provider.runner.SubscribableBuildActionRunner.run(SubscribableBuildActionRunner.java:58)at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:43)at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28)at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:78)at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:48)at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:52)at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37)at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)at org.gradle.util.Swapper.swap(Swapper.java:38)at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)at org.gradle.launcher.daemon.server.health.DaemonHealthTracker.execute(DaemonHealthTracker.java:47)at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:66)at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:72)at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)at org.gradle.launcher.daemon.server.health.HintGCAfterBuild.execute(HintGCAfterBuild.java:41)at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:246)at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)Caused by: java.lang.RuntimeException: com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_79\bin\java.exe'' finished with non-zero exit value 1at com.android.builder.profile.Recorder$Block.handleException(Recorder.java:54)at com.android.builder.profile.ThreadRecorder$1.record(ThreadRecorder.java:57)at com.android.builder.profile.ThreadRecorder$1.record(ThreadRecorder.java:47)at com.android.build.gradle.internal.pipeline.TransformTask.transform(TransformTask.java:173)at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$IncrementalTaskAction.doExecute(AnnotationProcessingTaskFactory.java:244)at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:220)at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$IncrementalTaskAction.execute(AnnotationProcessingTaskFactory.java:231)at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:209)at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)... 70 moreCaused by: com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_79\bin\java.exe'' finished with non-zero exit value 1at com.android.build.gradle.internal.transforms.MultiDexTransform.transform(MultiDexTransform.java:148)at com.android.build.gradle.internal.pipeline.TransformTask$3.call(TransformTask.java:178)at com.android.build.gradle.internal.pipeline.TransformTask$3.call(TransformTask.java:174)at com.android.builder.profile.ThreadRecorder$1.record(ThreadRecorder.java:55)... 79 moreCaused by: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_79\bin\java.exe'' finished with non-zero exit value 1at com.android.build.gradle.internal.process.GradleProcessResult.assertNormalExitValue(GradleProcessResult.java:43)at com.android.builder.core.AndroidBuilder.createMainDexList(AndroidBuilder.java:1690)at com.android.build.gradle.internal.transforms.MultiDexTransform.callDx(MultiDexTransform.java:244)at com.android.build.gradle.internal.transforms.MultiDexTransform.computeList(MultiDexTransform.java:211)at com.android.build.gradle.internal.transforms.MultiDexTransform.transform(MultiDexTransform.java:144)... 82 moreCaused by: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_79\bin\java.exe'' finished with non-zero exit value 1at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:367)at com.android.build.gradle.internal.process.GradleProcessResult.assertNormalExitValue(GradleProcessResult.java:41)... 86 moreBUILD FAILEDTotal time: 2.247 secs 解决方案 First of all make sure that in your Project No Duplicate library are there. Then Try below thing.add this in your build.gradle file.compileOptions { sourceCompatibility JavaVersion.VERSION_1_7 targetCompatibility JavaVersion.VERSION_1_7 } 这篇关于获取错误:任务应用程序的执行失败:transformClassesWithMultidexlistForDebug的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-23 05:12