Error[8]: Undefined offset: 6, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述我正在开发一个应用程序,我正在使用这个 library. 在编译项目时,会d出包含TransformException和RuntimeException的错误: Error:Execution failed for task ':app:transformClassesWithDexForDebug'.> com.android.build.api.transform.TransformExce 我正在开发一个应用程序,我正在使用这个 library.

在编译项目时,会d出包含transformException和RuntimeException的错误:

Error:Execution Failed for task ':app:transformClassesWithDexForDeBUG'.> com.androID.build.API.transform.transformException: java.lang.RuntimeException: java.lang.RuntimeException: Unable to pre-dex 'C:\Users\hp\.gradle\caches\modules-2\files-2.1\org.brunocvcunha.instagram4j\instagram4j.4\e86d0ec82fb3eb4225b983e6dc14db048005bc9b\instagram4j-1.4.jar' to 'C:\Users\hp\Downloads\Hamy\app\build\intermediates\transforms\dex\deBUG\folders00\instagram4j-1.4_ea292e8a2c317dbd8ab0226ff9507ee97ac0794b'

这是build.gradle(模块:app):

apply plugin: 'com.androID.application'androID {    compileSdkVersion 25    buildToolsversion "26.0.1"    defaultConfig {        applicationID "com.xxx.abc"        minSdkVersion 16        targetSdkVersion 25        versionCode 1        versionname "1.0"        testInstrumentationRunner "androID.support.test.runner.AndroIDJUnitRunner"        multIDexEnabled true    }    buildTypes {        release {            MinifyEnabled false            proguardfiles getDefaultProguardfile('proguard-androID.txt'),'proguard-rules.pro'        }    }    dexOptions {        preDexlibrarIEs = false        javaMaxHeapSize "4g"    }    packagingOptions {        exclude 'meta-inf/liCENSE.txt'        exclude 'meta-inf/liCENSE'        exclude 'meta-inf/NOTICE'        exclude 'meta-inf/NOTICE.txt'        exclude 'liCENSE.txt'        exclude '**/log4j.propertIEs'//        exclude 'log4j.propertIEs'        exclude 'org/bytedeco/javacpp/macosx-x86_64/libusb-1.0.dylib'        exclude 'meta-inf/DEPENDENCIES'    }}repositorIEs {    mavenCentral()}androID {    uselibrary 'org.apache.http.legacy'}dependencIEs {    compile filetree(include: ['*.jar'],dir: 'libs')    androIDTestCompile('com.androID.support.test.espresso:espresso-core:2.2.2',{        exclude group: 'com.androID.support',module: 'support-annotations'    })    compile 'com.androID.support:appcompat-v7:25.3.1'    compile 'com.androID.support.constraint:constraint-layout:1.0.2'    compile 'com.androID.support:design:25.3.1'    compile 'com.androID.support:support-v4:25.3.1'    compile 'com.androID.support:preference-v7:25.3.1'    compile 'ai.API:sdk:2.0.7@aar'    compile 'ai.API:libai:1.4.8'    compile 'com.Google.code.gson:gson:2.7'    compile 'commons-io:commons-io:2.4'    compile 'com.twitter.sdk.androID:twitter:3.1.1'    compile 'com.facebook.androID:facebook-android-sdk:[4,5)'    compile 'com.androID.support:multIDex:1.0.1'    compile 'org.brunocvcunha.instagram4j:instagram4j:1.4'    compile 'org.apache.httpcomponents:httpclIEnt-androID:4.3.5.1'    compile 'org.apache.httpcomponents:httpmime:4.3.5'    compile 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.clIEnt:4.1.2'    testCompile 'junit:junit:4.12'}configurations {    all*.exclude group: 'org.apache.httpcomponents',module: 'httpclIEnt'}

更新:

在不更改代码中的任何内容的情况下,我现在收到此错误:

Error:Execution Failed for task ':app:transformResourcesWithMergeJavaResForDeBUG'.> com.androID.build.API.transform.transformException: com.androID.builder.packaging.DuplicatefileException: Duplicate files copIEd in APK log4j.propertIEs    file1: C:\Users\user\.gradle\caches\modules-2\files-2.1\org.brunocvcunha.inutils4j\inutils4j
* What went wrong:Execution Failed for task ':app:transformClassesWithMultIDexListForDeBUG'.> com.androID.build.API.transform.transformException: com.androID.IDe.common.process.ProcessException: Error while executing java process with main class com.androID.multIDex.ClassReferenceListBuilder with arguments {C:\Users\user\Downloads\appNmae\app\build\intermediates\multi-dex\deBUG\componentClasses.jar C:\Users\user\Downloads\appname\app\build\intermediates\transforms\jarMerging\deBUG\jarsf\combined.jar}* 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:84)    at org.gradle.API.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:55)    at org.gradle.API.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:62)    at org.gradle.API.internal.tasks.execution.ValIDatingTaskExecuter.execute(ValIDatingTaskExecuter.java:58)    at org.gradle.API.internal.tasks.execution.SkipEmptySourcefilesTaskExecuter.execute(SkipEmptySourcefilesTaskExecuter.java:88)    at org.gradle.API.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:46)    at org.gradle.API.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:51)    at org.gradle.API.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)    at org.gradle.API.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)    at org.gradle.API.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:236)    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:228)    at org.gradle.internal.transformers.transform(transformers.java:169)    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:61)    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:228)    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:215)    at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processtask(AbstractTaskPlanExecutor.java:77)    at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:58)    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:32)    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:113)    at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)    at org.gradle.execution.DefaultBuildExecuter.access
Error:Error converting bytecode to dex:Cause: PARSE ERROR:InvokeDynamic not supported...while preparsing cst 005c at offset 00000195...while parsing org/brunocvcunha/instagram4j/Instagram4j.classError:1 error; abortingError:Execution Failed for task ':app:transformClassesWithDexForDeBUG'.> com.androID.build.API.transform.transformException: java.lang.RuntimeException: java.lang.RuntimeException: Unable to pre-dex 'C:\Users\hp\.gradle\caches\modules-2\files-2.1\org.brunocvcunha.instagram4j\instagram4j.4\e86d0ec82fb3eb4225b983e6dc14db048005bc9b\instagram4j-1.4.jar' to 'C:\Users\hp\Downloads\abc\app\build\intermediates\transforms\dex\deBUG\folders00\instagram4j-1.4_ea292e8a2c317dbd8ab0226ff9507ee97ac0794b'
0(DefaultBuildExecuter.java:23) at org.gradle.execution.DefaultBuildExecuter.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.execute(DefaultGradleLauncher.java:196) at org.gradle.initialization.DefaultGradleLauncher.execute(DefaultGradleLauncher.java:193) at org.gradle.internal.transformers.transform(transformers.java:169) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:56) at org.gradle.initialization.DefaultGradleLauncher.dobuildStages(DefaultGradleLauncher.java:193) at org.gradle.initialization.DefaultGradleLauncher.dobuild(DefaultGradleLauncher.java:119) at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:102) at org.gradle.launcher.exec.GradleBuildController.run(GradleBuildController.java:71) at org.gradle.tooling.internal.provIDer.runner.BuildModelActionRunner.run(BuildModelActionRunner.java:50) at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35) at org.gradle.tooling.internal.provIDer.runner.RunAsBuildOperationBuildActionRunner.execute(RunAsBuildOperationBuildActionRunner.java:43) at org.gradle.tooling.internal.provIDer.runner.RunAsBuildOperationBuildActionRunner.execute(RunAsBuildOperationBuildActionRunner.java:40) at org.gradle.internal.transformers.transform(transformers.java:169) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:56) at org.gradle.tooling.internal.provIDer.runner.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:40) at org.gradle.tooling.internal.provIDer.runner.SubscribableBuildActionRunner.run(SubscribableBuildActionRunner.java:75) at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:41) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26) at org.gradle.tooling.internal.provIDer.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:75) at org.gradle.tooling.internal.provIDer.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:49) at org.gradle.tooling.internal.provIDer.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:44) at org.gradle.tooling.internal.provIDer.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:29) at org.gradle.launcher.daemon.server.exec.ExecuteBuild.dobuild(ExecuteBuild.java:67) 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:47) 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.call(ForwardClIEntinput.java:74) at org.gradle.launcher.daemon.server.exec.ForwardClIEntinput.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.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55) at org.gradle.launcher.daemon.server.API.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.LogToClIEnt.dobuild(LogToClIEnt.java:60) 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.exec.StartBuildOrResponDWithBusy.run(StartBuildOrResponDWithBusy.java:50) at org.gradle.launcher.daemon.server.DaemonStateCoordinator.run(DaemonStateCoordinator.java:297) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54) at org.gradle.internal.concurrent.StoppableExecutorImpl.run(StoppableExecutorImpl.java:40)Caused by: java.lang.RuntimeException: com.androID.build.API.transform.transformException: com.androID.IDe.common.process.ProcessException: Error while executing java process with main class com.androID.multIDex.ClassReferenceListBuilder with arguments {C:\Users\hp\Downloads\Hamy\app\build\intermediates\multi-dex\deBUG\componentClasses.jar C:\Users\hp\Downloads\Hamy\app\build\intermediates\transforms\jarMerging\deBUG\jarsf\combined.jar} at com.androID.builder.profile.Recorder$Block.handleException(Recorder.java:55) at com.androID.builder.profile.ThreadRecorder.record(ThreadRecorder.java:104) at com.androID.build.gradle.internal.pipeline.transformTask.transform(transformTask.java:176) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73) at org.gradle.API.internal.project.taskfactory.DefaultTaskClassInfoStore$IncrementalTaskAction.doExecute(DefaultTaskClassInfoStore.java:163) at org.gradle.API.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:134) at org.gradle.API.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:123) at org.gradle.API.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:95) at org.gradle.API.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:76) ... 78 moreCaused by: com.androID.build.API.transform.transformException: com.androID.IDe.common.process.ProcessException: Error while executing java process with main class com.androID.multIDex.ClassReferenceListBuilder with arguments {C:\Users\hp\Downloads\Hamy\app\build\intermediates\multi-dex\deBUG\componentClasses.jar C:\Users\hp\Downloads\Hamy\app\build\intermediates\transforms\jarMerging\deBUG\jarsf\combined.jar} at com.androID.build.gradle.internal.transforms.MultIDextransform.transform(MultIDextransform.java:188) at com.androID.build.gradle.internal.pipeline.transformTask.call(transformTask.java:185) at com.androID.build.gradle.internal.pipeline.transformTask.call(transformTask.java:181) at com.androID.builder.profile.ThreadRecorder.record(ThreadRecorder.java:102) ... 85 moreCaused by: com.androID.IDe.common.process.ProcessException: Error while executing java process with main class com.androID.multIDex.ClassReferenceListBuilder with arguments {C:\Users\hp\Downloads\Hamy\app\build\intermediates\multi-dex\deBUG\componentClasses.jar C:\Users\hp\Downloads\Hamy\app\build\intermediates\transforms\jarMerging\deBUG\jarsf\combined.jar} at com.androID.build.gradle.internal.process.GradleProcessResult.buildProcessException(GradleProcessResult.java:74) at com.androID.build.gradle.internal.process.GradleProcessResult.assertnormalExitValue(GradleProcessResult.java:49) at com.androID.builder.core.AndroIDBuilder.createMainDexList(AndroIDBuilder.java:1384) at com.androID.build.gradle.internal.transforms.MultIDextransform.callDx(MultIDextransform.java:309) at com.androID.build.gradle.internal.transforms.MultIDextransform.computeList(MultIDextransform.java:265) at com.androID.build.gradle.internal.transforms.MultIDextransform.transform(MultIDextransform.java:186) ... 88 moreCaused by: org.gradle.process.internal.ExecException: Process 'command 'C:\Program files\AndroID\AndroID Studio\jre\bin\java.exe'' finished with non-zero exit value 1 at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertnormalExitValue(DefaultExecHandle.java:369) at com.androID.build.gradle.internal.process.GradleProcessResult.assertnormalExitValue(GradleProcessResult.java:47) ... 92 more
.46b82b1e70d7ebb8d1d3bb513d4bbf7913b118b\inutils4j-0.4.jar file2: C:\Users\user\.gradle\caches\modules-2\files-2.1\org.brunocvcunha.ghostme4j\ghostme4j
public class YouApplication extends Application {    @OverrIDe    protected voID attachBaseContext(Context base) {        super.attachBaseContext(base);        MultIDex.install(this);    }}
.2\d44c3633f23975c355c89192d6e8daa9ce549b2d\ghostme4j-0.2.jar

当我试图删除文件时,他们会在运行应用程序时再次创建它们.

Gradle控制台输出:

[+++]

更新:31-08-2017:

在尝试了以下答案中推荐的所有内容后,我仍然收到此错误:

[+++]

我无法弄清楚为什么我在这里收到此错误.请帮帮我.

解决方法 将此代码放入您的第一个活动(应用程序的启动活动): [+++] 总结

以上是内存溢出为你收集整理的android – 在build.gradle中编译具有useLibrary’org.apache.http.legacy’的项目时出现’app:transformClassesWithDexForDebug’错误全部内容,希望文章能够帮你解决android – 在build.gradle中编译具有useLibrary’org.apache.http.legacy’的项目时出现’app:transformClassesWithDexForDebug’错误所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 7, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述我正在开发一个应用程序,我正在使用这个 library. 在编译项目时,会d出包含TransformException和RuntimeException的错误: Error:Execution failed for task ':app:transformClassesWithDexForDebug'.> com.android.build.api.transform.TransformExce 我正在开发一个应用程序,我正在使用这个 library.

在编译项目时,会d出包含transformException和RuntimeException的错误:

Error:Execution Failed for task ':app:transformClassesWithDexForDeBUG'.> com.androID.build.API.transform.transformException: java.lang.RuntimeException: java.lang.RuntimeException: Unable to pre-dex 'C:\Users\hp\.gradle\caches\modules-2\files-2.1\org.brunocvcunha.instagram4j\instagram4j.4\e86d0ec82fb3eb4225b983e6dc14db048005bc9b\instagram4j-1.4.jar' to 'C:\Users\hp\Downloads\Hamy\app\build\intermediates\transforms\dex\deBUG\folders00\instagram4j-1.4_ea292e8a2c317dbd8ab0226ff9507ee97ac0794b'

这是build.gradle(模块:app):

apply plugin: 'com.androID.application'androID {    compileSdkVersion 25    buildToolsversion "26.0.1"    defaultConfig {        applicationID "com.xxx.abc"        minSdkVersion 16        targetSdkVersion 25        versionCode 1        versionname "1.0"        testInstrumentationRunner "androID.support.test.runner.AndroIDJUnitRunner"        multIDexEnabled true    }    buildTypes {        release {            MinifyEnabled false            proguardfiles getDefaultProguardfile('proguard-androID.txt'),'proguard-rules.pro'        }    }    dexOptions {        preDexlibrarIEs = false        javaMaxHeapSize "4g"    }    packagingOptions {        exclude 'meta-inf/liCENSE.txt'        exclude 'meta-inf/liCENSE'        exclude 'meta-inf/NOTICE'        exclude 'meta-inf/NOTICE.txt'        exclude 'liCENSE.txt'        exclude '**/log4j.propertIEs'//        exclude 'log4j.propertIEs'        exclude 'org/bytedeco/javacpp/macosx-x86_64/libusb-1.0.dylib'        exclude 'meta-inf/DEPENDENCIES'    }}repositorIEs {    mavenCentral()}androID {    uselibrary 'org.apache.http.legacy'}dependencIEs {    compile filetree(include: ['*.jar'],dir: 'libs')    androIDTestCompile('com.androID.support.test.espresso:espresso-core:2.2.2',{        exclude group: 'com.androID.support',module: 'support-annotations'    })    compile 'com.androID.support:appcompat-v7:25.3.1'    compile 'com.androID.support.constraint:constraint-layout:1.0.2'    compile 'com.androID.support:design:25.3.1'    compile 'com.androID.support:support-v4:25.3.1'    compile 'com.androID.support:preference-v7:25.3.1'    compile 'ai.API:sdk:2.0.7@aar'    compile 'ai.API:libai:1.4.8'    compile 'com.Google.code.gson:gson:2.7'    compile 'commons-io:commons-io:2.4'    compile 'com.twitter.sdk.androID:twitter:3.1.1'    compile 'com.facebook.androID:facebook-android-sdk:[4,5)'    compile 'com.androID.support:multIDex:1.0.1'    compile 'org.brunocvcunha.instagram4j:instagram4j:1.4'    compile 'org.apache.httpcomponents:httpclIEnt-androID:4.3.5.1'    compile 'org.apache.httpcomponents:httpmime:4.3.5'    compile 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.clIEnt:4.1.2'    testCompile 'junit:junit:4.12'}configurations {    all*.exclude group: 'org.apache.httpcomponents',module: 'httpclIEnt'}

更新:

在不更改代码中的任何内容的情况下,我现在收到此错误:

Error:Execution Failed for task ':app:transformResourcesWithMergeJavaResForDeBUG'.> com.androID.build.API.transform.transformException: com.androID.builder.packaging.DuplicatefileException: Duplicate files copIEd in APK log4j.propertIEs    file1: C:\Users\user\.gradle\caches\modules-2\files-2.1\org.brunocvcunha.inutils4j\inutils4j
* What went wrong:Execution Failed for task ':app:transformClassesWithMultIDexListForDeBUG'.> com.androID.build.API.transform.transformException: com.androID.IDe.common.process.ProcessException: Error while executing java process with main class com.androID.multIDex.ClassReferenceListBuilder with arguments {C:\Users\user\Downloads\appNmae\app\build\intermediates\multi-dex\deBUG\componentClasses.jar C:\Users\user\Downloads\appname\app\build\intermediates\transforms\jarMerging\deBUG\jarsf\combined.jar}* 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:84)    at org.gradle.API.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:55)    at org.gradle.API.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:62)    at org.gradle.API.internal.tasks.execution.ValIDatingTaskExecuter.execute(ValIDatingTaskExecuter.java:58)    at org.gradle.API.internal.tasks.execution.SkipEmptySourcefilesTaskExecuter.execute(SkipEmptySourcefilesTaskExecuter.java:88)    at org.gradle.API.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:46)    at org.gradle.API.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:51)    at org.gradle.API.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)    at org.gradle.API.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)    at org.gradle.API.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:236)    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:228)    at org.gradle.internal.transformers.transform(transformers.java:169)    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:61)    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:228)    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:215)    at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processtask(AbstractTaskPlanExecutor.java:77)    at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:58)    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:32)    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:113)    at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)    at org.gradle.execution.DefaultBuildExecuter.access
Error:Error converting bytecode to dex:Cause: PARSE ERROR:InvokeDynamic not supported...while preparsing cst 005c at offset 00000195...while parsing org/brunocvcunha/instagram4j/Instagram4j.classError:1 error; abortingError:Execution Failed for task ':app:transformClassesWithDexForDeBUG'.> com.androID.build.API.transform.transformException: java.lang.RuntimeException: java.lang.RuntimeException: Unable to pre-dex 'C:\Users\hp\.gradle\caches\modules-2\files-2.1\org.brunocvcunha.instagram4j\instagram4j.4\e86d0ec82fb3eb4225b983e6dc14db048005bc9b\instagram4j-1.4.jar' to 'C:\Users\hp\Downloads\abc\app\build\intermediates\transforms\dex\deBUG\folders00\instagram4j-1.4_ea292e8a2c317dbd8ab0226ff9507ee97ac0794b'
0(DefaultBuildExecuter.java:23) at org.gradle.execution.DefaultBuildExecuter.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.execute(DefaultGradleLauncher.java:196) at org.gradle.initialization.DefaultGradleLauncher.execute(DefaultGradleLauncher.java:193) at org.gradle.internal.transformers.transform(transformers.java:169) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:56) at org.gradle.initialization.DefaultGradleLauncher.dobuildStages(DefaultGradleLauncher.java:193) at org.gradle.initialization.DefaultGradleLauncher.dobuild(DefaultGradleLauncher.java:119) at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:102) at org.gradle.launcher.exec.GradleBuildController.run(GradleBuildController.java:71) at org.gradle.tooling.internal.provIDer.runner.BuildModelActionRunner.run(BuildModelActionRunner.java:50) at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35) at org.gradle.tooling.internal.provIDer.runner.RunAsBuildOperationBuildActionRunner.execute(RunAsBuildOperationBuildActionRunner.java:43) at org.gradle.tooling.internal.provIDer.runner.RunAsBuildOperationBuildActionRunner.execute(RunAsBuildOperationBuildActionRunner.java:40) at org.gradle.internal.transformers.transform(transformers.java:169) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:56) at org.gradle.tooling.internal.provIDer.runner.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:40) at org.gradle.tooling.internal.provIDer.runner.SubscribableBuildActionRunner.run(SubscribableBuildActionRunner.java:75) at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:41) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26) at org.gradle.tooling.internal.provIDer.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:75) at org.gradle.tooling.internal.provIDer.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:49) at org.gradle.tooling.internal.provIDer.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:44) at org.gradle.tooling.internal.provIDer.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:29) at org.gradle.launcher.daemon.server.exec.ExecuteBuild.dobuild(ExecuteBuild.java:67) 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:47) 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.call(ForwardClIEntinput.java:74) at org.gradle.launcher.daemon.server.exec.ForwardClIEntinput.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.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55) at org.gradle.launcher.daemon.server.API.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.LogToClIEnt.dobuild(LogToClIEnt.java:60) 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.exec.StartBuildOrResponDWithBusy.run(StartBuildOrResponDWithBusy.java:50) at org.gradle.launcher.daemon.server.DaemonStateCoordinator.run(DaemonStateCoordinator.java:297) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54) at org.gradle.internal.concurrent.StoppableExecutorImpl.run(StoppableExecutorImpl.java:40)Caused by: java.lang.RuntimeException: com.androID.build.API.transform.transformException: com.androID.IDe.common.process.ProcessException: Error while executing java process with main class com.androID.multIDex.ClassReferenceListBuilder with arguments {C:\Users\hp\Downloads\Hamy\app\build\intermediates\multi-dex\deBUG\componentClasses.jar C:\Users\hp\Downloads\Hamy\app\build\intermediates\transforms\jarMerging\deBUG\jarsf\combined.jar} at com.androID.builder.profile.Recorder$Block.handleException(Recorder.java:55) at com.androID.builder.profile.ThreadRecorder.record(ThreadRecorder.java:104) at com.androID.build.gradle.internal.pipeline.transformTask.transform(transformTask.java:176) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73) at org.gradle.API.internal.project.taskfactory.DefaultTaskClassInfoStore$IncrementalTaskAction.doExecute(DefaultTaskClassInfoStore.java:163) at org.gradle.API.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:134) at org.gradle.API.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:123) at org.gradle.API.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:95) at org.gradle.API.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:76) ... 78 moreCaused by: com.androID.build.API.transform.transformException: com.androID.IDe.common.process.ProcessException: Error while executing java process with main class com.androID.multIDex.ClassReferenceListBuilder with arguments {C:\Users\hp\Downloads\Hamy\app\build\intermediates\multi-dex\deBUG\componentClasses.jar C:\Users\hp\Downloads\Hamy\app\build\intermediates\transforms\jarMerging\deBUG\jarsf\combined.jar} at com.androID.build.gradle.internal.transforms.MultIDextransform.transform(MultIDextransform.java:188) at com.androID.build.gradle.internal.pipeline.transformTask.call(transformTask.java:185) at com.androID.build.gradle.internal.pipeline.transformTask.call(transformTask.java:181) at com.androID.builder.profile.ThreadRecorder.record(ThreadRecorder.java:102) ... 85 moreCaused by: com.androID.IDe.common.process.ProcessException: Error while executing java process with main class com.androID.multIDex.ClassReferenceListBuilder with arguments {C:\Users\hp\Downloads\Hamy\app\build\intermediates\multi-dex\deBUG\componentClasses.jar C:\Users\hp\Downloads\Hamy\app\build\intermediates\transforms\jarMerging\deBUG\jarsf\combined.jar} at com.androID.build.gradle.internal.process.GradleProcessResult.buildProcessException(GradleProcessResult.java:74) at com.androID.build.gradle.internal.process.GradleProcessResult.assertnormalExitValue(GradleProcessResult.java:49) at com.androID.builder.core.AndroIDBuilder.createMainDexList(AndroIDBuilder.java:1384) at com.androID.build.gradle.internal.transforms.MultIDextransform.callDx(MultIDextransform.java:309) at com.androID.build.gradle.internal.transforms.MultIDextransform.computeList(MultIDextransform.java:265) at com.androID.build.gradle.internal.transforms.MultIDextransform.transform(MultIDextransform.java:186) ... 88 moreCaused by: org.gradle.process.internal.ExecException: Process 'command 'C:\Program files\AndroID\AndroID Studio\jre\bin\java.exe'' finished with non-zero exit value 1 at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertnormalExitValue(DefaultExecHandle.java:369) at com.androID.build.gradle.internal.process.GradleProcessResult.assertnormalExitValue(GradleProcessResult.java:47) ... 92 more
.46b82b1e70d7ebb8d1d3bb513d4bbf7913b118b\inutils4j-0.4.jar file2: C:\Users\user\.gradle\caches\modules-2\files-2.1\org.brunocvcunha.ghostme4j\ghostme4j
public class YouApplication extends Application {    @OverrIDe    protected voID attachBaseContext(Context base) {        super.attachBaseContext(base);        MultIDex.install(this);    }}
.2\d44c3633f23975c355c89192d6e8daa9ce549b2d\ghostme4j-0.2.jar

当我试图删除文件时,他们会在运行应用程序时再次创建它们.

Gradle控制台输出:

更新:31-08-2017:

在尝试了以下答案中推荐的所有内容后,我仍然收到此错误:

[+++]

我无法弄清楚为什么我在这里收到此错误.请帮帮我.

解决方法 将此代码放入您的第一个活动(应用程序的启动活动): [+++] 总结

以上是内存溢出为你收集整理的android – 在build.gradle中编译具有useLibrary’org.apache.http.legacy’的项目时出现’app:transformClassesWithDexForDebug’错误全部内容,希望文章能够帮你解决android – 在build.gradle中编译具有useLibrary’org.apache.http.legacy’的项目时出现’app:transformClassesWithDexForDebug’错误所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Error[8]: Undefined offset: 8, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述我正在开发一个应用程序,我正在使用这个 library. 在编译项目时,会d出包含TransformException和RuntimeException的错误: Error:Execution failed for task ':app:transformClassesWithDexForDebug'.> com.android.build.api.transform.TransformExce 我正在开发一个应用程序,我正在使用这个 library.

在编译项目时,会d出包含transformException和RuntimeException的错误:

Error:Execution Failed for task ':app:transformClassesWithDexForDeBUG'.> com.androID.build.API.transform.transformException: java.lang.RuntimeException: java.lang.RuntimeException: Unable to pre-dex 'C:\Users\hp\.gradle\caches\modules-2\files-2.1\org.brunocvcunha.instagram4j\instagram4j.4\e86d0ec82fb3eb4225b983e6dc14db048005bc9b\instagram4j-1.4.jar' to 'C:\Users\hp\Downloads\Hamy\app\build\intermediates\transforms\dex\deBUG\folders00\instagram4j-1.4_ea292e8a2c317dbd8ab0226ff9507ee97ac0794b'

这是build.gradle(模块:app):

apply plugin: 'com.androID.application'androID {    compileSdkVersion 25    buildToolsversion "26.0.1"    defaultConfig {        applicationID "com.xxx.abc"        minSdkVersion 16        targetSdkVersion 25        versionCode 1        versionname "1.0"        testInstrumentationRunner "androID.support.test.runner.AndroIDJUnitRunner"        multIDexEnabled true    }    buildTypes {        release {            MinifyEnabled false            proguardfiles getDefaultProguardfile('proguard-androID.txt'),'proguard-rules.pro'        }    }    dexOptions {        preDexlibrarIEs = false        javaMaxHeapSize "4g"    }    packagingOptions {        exclude 'meta-inf/liCENSE.txt'        exclude 'meta-inf/liCENSE'        exclude 'meta-inf/NOTICE'        exclude 'meta-inf/NOTICE.txt'        exclude 'liCENSE.txt'        exclude '**/log4j.propertIEs'//        exclude 'log4j.propertIEs'        exclude 'org/bytedeco/javacpp/macosx-x86_64/libusb-1.0.dylib'        exclude 'meta-inf/DEPENDENCIES'    }}repositorIEs {    mavenCentral()}androID {    uselibrary 'org.apache.http.legacy'}dependencIEs {    compile filetree(include: ['*.jar'],dir: 'libs')    androIDTestCompile('com.androID.support.test.espresso:espresso-core:2.2.2',{        exclude group: 'com.androID.support',module: 'support-annotations'    })    compile 'com.androID.support:appcompat-v7:25.3.1'    compile 'com.androID.support.constraint:constraint-layout:1.0.2'    compile 'com.androID.support:design:25.3.1'    compile 'com.androID.support:support-v4:25.3.1'    compile 'com.androID.support:preference-v7:25.3.1'    compile 'ai.API:sdk:2.0.7@aar'    compile 'ai.API:libai:1.4.8'    compile 'com.Google.code.gson:gson:2.7'    compile 'commons-io:commons-io:2.4'    compile 'com.twitter.sdk.androID:twitter:3.1.1'    compile 'com.facebook.androID:facebook-android-sdk:[4,5)'    compile 'com.androID.support:multIDex:1.0.1'    compile 'org.brunocvcunha.instagram4j:instagram4j:1.4'    compile 'org.apache.httpcomponents:httpclIEnt-androID:4.3.5.1'    compile 'org.apache.httpcomponents:httpmime:4.3.5'    compile 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.clIEnt:4.1.2'    testCompile 'junit:junit:4.12'}configurations {    all*.exclude group: 'org.apache.httpcomponents',module: 'httpclIEnt'}

更新:

在不更改代码中的任何内容的情况下,我现在收到此错误:

Error:Execution Failed for task ':app:transformResourcesWithMergeJavaResForDeBUG'.> com.androID.build.API.transform.transformException: com.androID.builder.packaging.DuplicatefileException: Duplicate files copIEd in APK log4j.propertIEs    file1: C:\Users\user\.gradle\caches\modules-2\files-2.1\org.brunocvcunha.inutils4j\inutils4j
* What went wrong:Execution Failed for task ':app:transformClassesWithMultIDexListForDeBUG'.> com.androID.build.API.transform.transformException: com.androID.IDe.common.process.ProcessException: Error while executing java process with main class com.androID.multIDex.ClassReferenceListBuilder with arguments {C:\Users\user\Downloads\appNmae\app\build\intermediates\multi-dex\deBUG\componentClasses.jar C:\Users\user\Downloads\appname\app\build\intermediates\transforms\jarMerging\deBUG\jarsf\combined.jar}* 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:84)    at org.gradle.API.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:55)    at org.gradle.API.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:62)    at org.gradle.API.internal.tasks.execution.ValIDatingTaskExecuter.execute(ValIDatingTaskExecuter.java:58)    at org.gradle.API.internal.tasks.execution.SkipEmptySourcefilesTaskExecuter.execute(SkipEmptySourcefilesTaskExecuter.java:88)    at org.gradle.API.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:46)    at org.gradle.API.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:51)    at org.gradle.API.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)    at org.gradle.API.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)    at org.gradle.API.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:236)    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:228)    at org.gradle.internal.transformers.transform(transformers.java:169)    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:61)    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:228)    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:215)    at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processtask(AbstractTaskPlanExecutor.java:77)    at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:58)    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:32)    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:113)    at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)    at org.gradle.execution.DefaultBuildExecuter.access
Error:Error converting bytecode to dex:Cause: PARSE ERROR:InvokeDynamic not supported...while preparsing cst 005c at offset 00000195...while parsing org/brunocvcunha/instagram4j/Instagram4j.classError:1 error; abortingError:Execution Failed for task ':app:transformClassesWithDexForDeBUG'.> com.androID.build.API.transform.transformException: java.lang.RuntimeException: java.lang.RuntimeException: Unable to pre-dex 'C:\Users\hp\.gradle\caches\modules-2\files-2.1\org.brunocvcunha.instagram4j\instagram4j.4\e86d0ec82fb3eb4225b983e6dc14db048005bc9b\instagram4j-1.4.jar' to 'C:\Users\hp\Downloads\abc\app\build\intermediates\transforms\dex\deBUG\folders00\instagram4j-1.4_ea292e8a2c317dbd8ab0226ff9507ee97ac0794b'
0(DefaultBuildExecuter.java:23) at org.gradle.execution.DefaultBuildExecuter.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.execute(DefaultGradleLauncher.java:196) at org.gradle.initialization.DefaultGradleLauncher.execute(DefaultGradleLauncher.java:193) at org.gradle.internal.transformers.transform(transformers.java:169) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:56) at org.gradle.initialization.DefaultGradleLauncher.dobuildStages(DefaultGradleLauncher.java:193) at org.gradle.initialization.DefaultGradleLauncher.dobuild(DefaultGradleLauncher.java:119) at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:102) at org.gradle.launcher.exec.GradleBuildController.run(GradleBuildController.java:71) at org.gradle.tooling.internal.provIDer.runner.BuildModelActionRunner.run(BuildModelActionRunner.java:50) at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35) at org.gradle.tooling.internal.provIDer.runner.RunAsBuildOperationBuildActionRunner.execute(RunAsBuildOperationBuildActionRunner.java:43) at org.gradle.tooling.internal.provIDer.runner.RunAsBuildOperationBuildActionRunner.execute(RunAsBuildOperationBuildActionRunner.java:40) at org.gradle.internal.transformers.transform(transformers.java:169) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:56) at org.gradle.tooling.internal.provIDer.runner.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:40) at org.gradle.tooling.internal.provIDer.runner.SubscribableBuildActionRunner.run(SubscribableBuildActionRunner.java:75) at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:41) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26) at org.gradle.tooling.internal.provIDer.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:75) at org.gradle.tooling.internal.provIDer.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:49) at org.gradle.tooling.internal.provIDer.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:44) at org.gradle.tooling.internal.provIDer.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:29) at org.gradle.launcher.daemon.server.exec.ExecuteBuild.dobuild(ExecuteBuild.java:67) 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:47) 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.call(ForwardClIEntinput.java:74) at org.gradle.launcher.daemon.server.exec.ForwardClIEntinput.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.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55) at org.gradle.launcher.daemon.server.API.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.LogToClIEnt.dobuild(LogToClIEnt.java:60) 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.exec.StartBuildOrResponDWithBusy.run(StartBuildOrResponDWithBusy.java:50) at org.gradle.launcher.daemon.server.DaemonStateCoordinator.run(DaemonStateCoordinator.java:297) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54) at org.gradle.internal.concurrent.StoppableExecutorImpl.run(StoppableExecutorImpl.java:40)Caused by: java.lang.RuntimeException: com.androID.build.API.transform.transformException: com.androID.IDe.common.process.ProcessException: Error while executing java process with main class com.androID.multIDex.ClassReferenceListBuilder with arguments {C:\Users\hp\Downloads\Hamy\app\build\intermediates\multi-dex\deBUG\componentClasses.jar C:\Users\hp\Downloads\Hamy\app\build\intermediates\transforms\jarMerging\deBUG\jarsf\combined.jar} at com.androID.builder.profile.Recorder$Block.handleException(Recorder.java:55) at com.androID.builder.profile.ThreadRecorder.record(ThreadRecorder.java:104) at com.androID.build.gradle.internal.pipeline.transformTask.transform(transformTask.java:176) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73) at org.gradle.API.internal.project.taskfactory.DefaultTaskClassInfoStore$IncrementalTaskAction.doExecute(DefaultTaskClassInfoStore.java:163) at org.gradle.API.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:134) at org.gradle.API.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:123) at org.gradle.API.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:95) at org.gradle.API.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:76) ... 78 moreCaused by: com.androID.build.API.transform.transformException: com.androID.IDe.common.process.ProcessException: Error while executing java process with main class com.androID.multIDex.ClassReferenceListBuilder with arguments {C:\Users\hp\Downloads\Hamy\app\build\intermediates\multi-dex\deBUG\componentClasses.jar C:\Users\hp\Downloads\Hamy\app\build\intermediates\transforms\jarMerging\deBUG\jarsf\combined.jar} at com.androID.build.gradle.internal.transforms.MultIDextransform.transform(MultIDextransform.java:188) at com.androID.build.gradle.internal.pipeline.transformTask.call(transformTask.java:185) at com.androID.build.gradle.internal.pipeline.transformTask.call(transformTask.java:181) at com.androID.builder.profile.ThreadRecorder.record(ThreadRecorder.java:102) ... 85 moreCaused by: com.androID.IDe.common.process.ProcessException: Error while executing java process with main class com.androID.multIDex.ClassReferenceListBuilder with arguments {C:\Users\hp\Downloads\Hamy\app\build\intermediates\multi-dex\deBUG\componentClasses.jar C:\Users\hp\Downloads\Hamy\app\build\intermediates\transforms\jarMerging\deBUG\jarsf\combined.jar} at com.androID.build.gradle.internal.process.GradleProcessResult.buildProcessException(GradleProcessResult.java:74) at com.androID.build.gradle.internal.process.GradleProcessResult.assertnormalExitValue(GradleProcessResult.java:49) at com.androID.builder.core.AndroIDBuilder.createMainDexList(AndroIDBuilder.java:1384) at com.androID.build.gradle.internal.transforms.MultIDextransform.callDx(MultIDextransform.java:309) at com.androID.build.gradle.internal.transforms.MultIDextransform.computeList(MultIDextransform.java:265) at com.androID.build.gradle.internal.transforms.MultIDextransform.transform(MultIDextransform.java:186) ... 88 moreCaused by: org.gradle.process.internal.ExecException: Process 'command 'C:\Program files\AndroID\AndroID Studio\jre\bin\java.exe'' finished with non-zero exit value 1 at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertnormalExitValue(DefaultExecHandle.java:369) at com.androID.build.gradle.internal.process.GradleProcessResult.assertnormalExitValue(GradleProcessResult.java:47) ... 92 more
.46b82b1e70d7ebb8d1d3bb513d4bbf7913b118b\inutils4j-0.4.jar file2: C:\Users\user\.gradle\caches\modules-2\files-2.1\org.brunocvcunha.ghostme4j\ghostme4j
public class YouApplication extends Application {    @OverrIDe    protected voID attachBaseContext(Context base) {        super.attachBaseContext(base);        MultIDex.install(this);    }}
.2\d44c3633f23975c355c89192d6e8daa9ce549b2d\ghostme4j-0.2.jar

当我试图删除文件时,他们会在运行应用程序时再次创建它们.

Gradle控制台输出:

更新:31-08-2017:

在尝试了以下答案中推荐的所有内容后,我仍然收到此错误:

我无法弄清楚为什么我在这里收到此错误.请帮帮我.

解决方法 将此代码放入您的第一个活动(应用程序的启动活动): [+++] 总结

以上是内存溢出为你收集整理的android – 在build.gradle中编译具有useLibrary’org.apache.http.legacy’的项目时出现’app:transformClassesWithDexForDebug’错误全部内容,希望文章能够帮你解决android – 在build.gradle中编译具有useLibrary’org.apache.http.legacy’的项目时出现’app:transformClassesWithDexForDebug’错误所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
android – 在build.gradle中编译具有useLibrary’org.apache.http.legacy’的项目时出现’app:transformClassesWithDexForDebug’错误_app_内存溢出

android – 在build.gradle中编译具有useLibrary’org.apache.http.legacy’的项目时出现’app:transformClassesWithDexForDebug’错误

android – 在build.gradle中编译具有useLibrary’org.apache.http.legacy’的项目时出现’app:transformClassesWithDexForDebug’错误,第1张

概述我正在开发一个应用程序,我正在使用这个 library. 在编译项目时,会d出包含TransformException和RuntimeException的错误: Error:Execution failed for task ':app:transformClassesWithDexForDebug'.> com.android.build.api.transform.TransformExce 我正在开发一个应用程序,我正在使用这个 library.

在编译项目时,会d出包含transformException和RuntimeException的错误:

Error:Execution Failed for task ':app:transformClassesWithDexForDeBUG'.> com.androID.build.API.transform.transformException: java.lang.RuntimeException: java.lang.RuntimeException: Unable to pre-dex 'C:\Users\hp\.gradle\caches\modules-2\files-2.1\org.brunocvcunha.instagram4j\instagram4j.4\e86d0ec82fb3eb4225b983e6dc14db048005bc9b\instagram4j-1.4.jar' to 'C:\Users\hp\Downloads\Hamy\app\build\intermediates\transforms\dex\deBUG\folders00\instagram4j-1.4_ea292e8a2c317dbd8ab0226ff9507ee97ac0794b'

这是build.gradle(模块:app):

apply plugin: 'com.androID.application'androID {    compileSdkVersion 25    buildToolsversion "26.0.1"    defaultConfig {        applicationID "com.xxx.abc"        minSdkVersion 16        targetSdkVersion 25        versionCode 1        versionname "1.0"        testInstrumentationRunner "androID.support.test.runner.AndroIDJUnitRunner"        multIDexEnabled true    }    buildTypes {        release {            MinifyEnabled false            proguardfiles getDefaultProguardfile('proguard-androID.txt'),'proguard-rules.pro'        }    }    dexOptions {        preDexlibrarIEs = false        javaMaxHeapSize "4g"    }    packagingOptions {        exclude 'meta-inf/liCENSE.txt'        exclude 'meta-inf/liCENSE'        exclude 'meta-inf/NOTICE'        exclude 'meta-inf/NOTICE.txt'        exclude 'liCENSE.txt'        exclude '**/log4j.propertIEs'//        exclude 'log4j.propertIEs'        exclude 'org/bytedeco/javacpp/macosx-x86_64/libusb-1.0.dylib'        exclude 'meta-inf/DEPENDENCIES'    }}repositorIEs {    mavenCentral()}androID {    uselibrary 'org.apache.http.legacy'}dependencIEs {    compile filetree(include: ['*.jar'],dir: 'libs')    androIDTestCompile('com.androID.support.test.espresso:espresso-core:2.2.2',{        exclude group: 'com.androID.support',module: 'support-annotations'    })    compile 'com.androID.support:appcompat-v7:25.3.1'    compile 'com.androID.support.constraint:constraint-layout:1.0.2'    compile 'com.androID.support:design:25.3.1'    compile 'com.androID.support:support-v4:25.3.1'    compile 'com.androID.support:preference-v7:25.3.1'    compile 'ai.API:sdk:2.0.7@aar'    compile 'ai.API:libai:1.4.8'    compile 'com.Google.code.gson:gson:2.7'    compile 'commons-io:commons-io:2.4'    compile 'com.twitter.sdk.androID:twitter:3.1.1'    compile 'com.facebook.androID:facebook-android-sdk:[4,5)'    compile 'com.androID.support:multIDex:1.0.1'    compile 'org.brunocvcunha.instagram4j:instagram4j:1.4'    compile 'org.apache.httpcomponents:httpclIEnt-androID:4.3.5.1'    compile 'org.apache.httpcomponents:httpmime:4.3.5'    compile 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.clIEnt:4.1.2'    testCompile 'junit:junit:4.12'}configurations {    all*.exclude group: 'org.apache.httpcomponents',module: 'httpclIEnt'}

更新:

在不更改代码中的任何内容的情况下,我现在收到此错误:

Error:Execution Failed for task ':app:transformResourcesWithMergeJavaResForDeBUG'.> com.androID.build.API.transform.transformException: com.androID.builder.packaging.DuplicatefileException: Duplicate files copIEd in APK log4j.propertIEs    file1: C:\Users\user\.gradle\caches\modules-2\files-2.1\org.brunocvcunha.inutils4j\inutils4j
* What went wrong:Execution Failed for task ':app:transformClassesWithMultIDexListForDeBUG'.> com.androID.build.API.transform.transformException: com.androID.IDe.common.process.ProcessException: Error while executing java process with main class com.androID.multIDex.ClassReferenceListBuilder with arguments {C:\Users\user\Downloads\appNmae\app\build\intermediates\multi-dex\deBUG\componentClasses.jar C:\Users\user\Downloads\appname\app\build\intermediates\transforms\jarMerging\deBUG\jarsf\combined.jar}* 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:84)    at org.gradle.API.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:55)    at org.gradle.API.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:62)    at org.gradle.API.internal.tasks.execution.ValIDatingTaskExecuter.execute(ValIDatingTaskExecuter.java:58)    at org.gradle.API.internal.tasks.execution.SkipEmptySourcefilesTaskExecuter.execute(SkipEmptySourcefilesTaskExecuter.java:88)    at org.gradle.API.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:46)    at org.gradle.API.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:51)    at org.gradle.API.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)    at org.gradle.API.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)    at org.gradle.API.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:236)    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:228)    at org.gradle.internal.transformers.transform(transformers.java:169)    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:61)    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:228)    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:215)    at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processtask(AbstractTaskPlanExecutor.java:77)    at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:58)    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:32)    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:113)    at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)    at org.gradle.execution.DefaultBuildExecuter.access
Error:Error converting bytecode to dex:Cause: PARSE ERROR:InvokeDynamic not supported...while preparsing cst 005c at offset 00000195...while parsing org/brunocvcunha/instagram4j/Instagram4j.classError:1 error; abortingError:Execution Failed for task ':app:transformClassesWithDexForDeBUG'.> com.androID.build.API.transform.transformException: java.lang.RuntimeException: java.lang.RuntimeException: Unable to pre-dex 'C:\Users\hp\.gradle\caches\modules-2\files-2.1\org.brunocvcunha.instagram4j\instagram4j.4\e86d0ec82fb3eb4225b983e6dc14db048005bc9b\instagram4j-1.4.jar' to 'C:\Users\hp\Downloads\abc\app\build\intermediates\transforms\dex\deBUG\folders00\instagram4j-1.4_ea292e8a2c317dbd8ab0226ff9507ee97ac0794b'
0(DefaultBuildExecuter.java:23) at org.gradle.execution.DefaultBuildExecuter.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.execute(DefaultGradleLauncher.java:196) at org.gradle.initialization.DefaultGradleLauncher.execute(DefaultGradleLauncher.java:193) at org.gradle.internal.transformers.transform(transformers.java:169) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:56) at org.gradle.initialization.DefaultGradleLauncher.dobuildStages(DefaultGradleLauncher.java:193) at org.gradle.initialization.DefaultGradleLauncher.dobuild(DefaultGradleLauncher.java:119) at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:102) at org.gradle.launcher.exec.GradleBuildController.run(GradleBuildController.java:71) at org.gradle.tooling.internal.provIDer.runner.BuildModelActionRunner.run(BuildModelActionRunner.java:50) at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35) at org.gradle.tooling.internal.provIDer.runner.RunAsBuildOperationBuildActionRunner.execute(RunAsBuildOperationBuildActionRunner.java:43) at org.gradle.tooling.internal.provIDer.runner.RunAsBuildOperationBuildActionRunner.execute(RunAsBuildOperationBuildActionRunner.java:40) at org.gradle.internal.transformers.transform(transformers.java:169) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:56) at org.gradle.tooling.internal.provIDer.runner.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:40) at org.gradle.tooling.internal.provIDer.runner.SubscribableBuildActionRunner.run(SubscribableBuildActionRunner.java:75) at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:41) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26) at org.gradle.tooling.internal.provIDer.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:75) at org.gradle.tooling.internal.provIDer.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:49) at org.gradle.tooling.internal.provIDer.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:44) at org.gradle.tooling.internal.provIDer.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:29) at org.gradle.launcher.daemon.server.exec.ExecuteBuild.dobuild(ExecuteBuild.java:67) 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:47) 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.call(ForwardClIEntinput.java:74) at org.gradle.launcher.daemon.server.exec.ForwardClIEntinput.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.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55) at org.gradle.launcher.daemon.server.API.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) at org.gradle.launcher.daemon.server.exec.LogToClIEnt.dobuild(LogToClIEnt.java:60) 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.exec.StartBuildOrResponDWithBusy.run(StartBuildOrResponDWithBusy.java:50) at org.gradle.launcher.daemon.server.DaemonStateCoordinator.run(DaemonStateCoordinator.java:297) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54) at org.gradle.internal.concurrent.StoppableExecutorImpl.run(StoppableExecutorImpl.java:40)Caused by: java.lang.RuntimeException: com.androID.build.API.transform.transformException: com.androID.IDe.common.process.ProcessException: Error while executing java process with main class com.androID.multIDex.ClassReferenceListBuilder with arguments {C:\Users\hp\Downloads\Hamy\app\build\intermediates\multi-dex\deBUG\componentClasses.jar C:\Users\hp\Downloads\Hamy\app\build\intermediates\transforms\jarMerging\deBUG\jarsf\combined.jar} at com.androID.builder.profile.Recorder$Block.handleException(Recorder.java:55) at com.androID.builder.profile.ThreadRecorder.record(ThreadRecorder.java:104) at com.androID.build.gradle.internal.pipeline.transformTask.transform(transformTask.java:176) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73) at org.gradle.API.internal.project.taskfactory.DefaultTaskClassInfoStore$IncrementalTaskAction.doExecute(DefaultTaskClassInfoStore.java:163) at org.gradle.API.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:134) at org.gradle.API.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:123) at org.gradle.API.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:95) at org.gradle.API.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:76) ... 78 moreCaused by: com.androID.build.API.transform.transformException: com.androID.IDe.common.process.ProcessException: Error while executing java process with main class com.androID.multIDex.ClassReferenceListBuilder with arguments {C:\Users\hp\Downloads\Hamy\app\build\intermediates\multi-dex\deBUG\componentClasses.jar C:\Users\hp\Downloads\Hamy\app\build\intermediates\transforms\jarMerging\deBUG\jarsf\combined.jar} at com.androID.build.gradle.internal.transforms.MultIDextransform.transform(MultIDextransform.java:188) at com.androID.build.gradle.internal.pipeline.transformTask.call(transformTask.java:185) at com.androID.build.gradle.internal.pipeline.transformTask.call(transformTask.java:181) at com.androID.builder.profile.ThreadRecorder.record(ThreadRecorder.java:102) ... 85 moreCaused by: com.androID.IDe.common.process.ProcessException: Error while executing java process with main class com.androID.multIDex.ClassReferenceListBuilder with arguments {C:\Users\hp\Downloads\Hamy\app\build\intermediates\multi-dex\deBUG\componentClasses.jar C:\Users\hp\Downloads\Hamy\app\build\intermediates\transforms\jarMerging\deBUG\jarsf\combined.jar} at com.androID.build.gradle.internal.process.GradleProcessResult.buildProcessException(GradleProcessResult.java:74) at com.androID.build.gradle.internal.process.GradleProcessResult.assertnormalExitValue(GradleProcessResult.java:49) at com.androID.builder.core.AndroIDBuilder.createMainDexList(AndroIDBuilder.java:1384) at com.androID.build.gradle.internal.transforms.MultIDextransform.callDx(MultIDextransform.java:309) at com.androID.build.gradle.internal.transforms.MultIDextransform.computeList(MultIDextransform.java:265) at com.androID.build.gradle.internal.transforms.MultIDextransform.transform(MultIDextransform.java:186) ... 88 moreCaused by: org.gradle.process.internal.ExecException: Process 'command 'C:\Program files\AndroID\AndroID Studio\jre\bin\java.exe'' finished with non-zero exit value 1 at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertnormalExitValue(DefaultExecHandle.java:369) at com.androID.build.gradle.internal.process.GradleProcessResult.assertnormalExitValue(GradleProcessResult.java:47) ... 92 more
.46b82b1e70d7ebb8d1d3bb513d4bbf7913b118b\inutils4j-0.4.jar file2: C:\Users\user\.gradle\caches\modules-2\files-2.1\org.brunocvcunha.ghostme4j\ghostme4j
public class YouApplication extends Application {    @OverrIDe    protected voID attachBaseContext(Context base) {        super.attachBaseContext(base);        MultIDex.install(this);    }}
.2\d44c3633f23975c355c89192d6e8daa9ce549b2d\ghostme4j-0.2.jar

当我试图删除文件时,他们会在运行应用程序时再次创建它们.

Gradle控制台输出:

更新:31-08-2017:

在尝试了以下答案中推荐的所有内容后,我仍然收到此错误:

我无法弄清楚为什么我在这里收到此错误.请帮帮我.

解决方法 将此代码放入您的第一个活动(应用程序的启动活动): 总结

以上是内存溢出为你收集整理的android – 在build.gradle中编译具有useLibrary’org.apache.http.legacy’的项目时出现’app:transformClassesWithDexForDebug’错误全部内容,希望文章能够帮你解决android – 在build.gradle中编译具有useLibrary’org.apache.http.legacy’的项目时出现’app:transformClassesWithDexForDebug’错误所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1143657.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-31
下一篇 2022-05-31

发表评论

登录后才能评论

评论列表(0条)

保存