- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
当我尝试使用gradlew assembleDebug
构建项目时遇到以下错误。尝试增加堆大小,但没有运气。
* What went wrong:
Execution failed for task ':transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Translation has been interrupted
* Try:
Run with --debug option to get more log output. Run with --scan to get full insights.
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':transformClassesWithDexForDebug'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:110)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:77)
at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:59)
at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:59)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:101)
at org.gradle.api.internal.tasks.execution.FinalizeInputFilePropertiesTaskExecuter.execute(FinalizeInputFilePropertiesTaskExecuter.java:44)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:91)
at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:62)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:59)
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.api.internal.tasks.execution.EventFiringTaskExecuter$1.run(EventFiringTaskExecuter.java:51)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:301)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:293)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:175)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:46)
at org.gradle.execution.taskgraph.LocalTaskInfoExecutor.execute(LocalTaskInfoExecutor.java:42)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareWorkItemExecutor.execute(DefaultTaskExecutionGraph.java:277)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareWorkItemExecutor.execute(DefaultTaskExecutionGraph.java:262)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:135)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:130)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.execute(DefaultTaskPlanExecutor.java:200)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.executeWithWork(DefaultTaskPlanExecutor.java:191)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.run(DefaultTaskPlanExecutor.java:130)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
Caused by: java.lang.RuntimeException: com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Translation has been interrupted
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.IncrementalTaskAction.doExecute(IncrementalTaskAction.java:50)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:131)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:301)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:293)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:175)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:120)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:99)
... 31 more
Caused by: com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Translation has been interrupted
at com.android.build.gradle.internal.transforms.DexTransform.transform(DexTransform.java:453)
at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:185)
at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:181)
at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:102)
... 44 more
Caused by: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Translation has been interrupted
at com.android.builder.core.DexByteCodeConverter.dexInProcess(DexByteCodeConverter.java:180)
at com.android.builder.core.DexByteCodeConverter.runDexer(DexByteCodeConverter.java:158)
at com.android.builder.core.DexByteCodeConverter.convertByteCode(DexByteCodeConverter.java:143)
at com.android.builder.core.AndroidBuilder.convertByteCode(AndroidBuilder.java:1345)
at com.android.build.gradle.internal.transforms.DexTransform.transform(DexTransform.java:279)
... 47 more
Caused by: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Translation has been interrupted
at com.android.builder.core.DexByteCodeConverter.dexInProcess(DexByteCodeConverter.java:178)
... 51 more
Caused by: java.lang.RuntimeException: Translation has been interrupted
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:631)
at com.android.dx.command.dexer.Main.runMultiDex(Main.java:376)
at com.android.dx.command.dexer.Main.run(Main.java:290)
at com.android.builder.internal.compiler.DexWrapper.run(DexWrapper.java:54)
at com.android.builder.core.DexByteCodeConverter.lambda$dexInProcess$0(DexByteCodeConverter.java:174)
Caused by: java.lang.InterruptedException: Too many errors
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:623)
... 4 more
最佳答案
android gradle插件有冲突
关于android - 任务transformClassesWithDexForDebug失败,并出现java.lang.InterruptedException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58146091/
Uncaught translation error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: GC
经过多次尝试使用其他网络解决方案后,我感到绝望。 如果有人可以帮助我解决这个问题,我会更开心! 错误:任务':app:transformClassesWithDexForDebug'的执行失败。 co
我不明白为什么会出现此错误。我下载了 Android 1.5.1 并安装了 jdk 7,但每当我运行 hello world 应用程序时,它都不会调试并显示以下错误 错误:任务“:app:transf
构建我的 Android 应用大约需要 90 秒(“快”),每次更新代码最多需要 3 分钟。这完全是浪费时间,因为我认为解决方案一定是触手可及的。我尝试调查这个问题,发现了不同的博客文章和带有建议的答
在我执行命令“ionic build android”之前,一切都很好并且工作完美然后出现这个错误。 :transformClassesWithDexForDebugjava.lang.Unsuppo
我正在编译 multidex 项目,而 gradle 给了我这个: Execution failed for task ':Project:transformClassesWithDexForLite
在SO上似乎有很多类似的问题,我已经尝试了许多解决方案,但都没有奏效。 在Android Studio中,当我尝试在物理设备或模拟器上运行我的应用程序时,gradle构建失败,并出现以下错误: Err
这是我的梯度: apply plugin: 'com.android.application' android { compileSdkVersion 25 buildToolsV
我在编译新项目时遇到问题。我第一次遇到这个问题,互联网上没有这样的解决方案。我搜索了很多但没有找到任何解决方案。你能帮帮我吗? 我的日志: Information:Gradle tasks [:app
在我的应用程序中,我想使用 Firebase作为后端。我也支持 Facebook 和 Google 登录。在依赖项中添加 Firebase 之前,我的项目编译成功,但在添加 Firebase 之后,出
gradle有问题,我的应用程序无法编译,并在“0:Messages”选项卡上显示此错误,这是我在build.gradle(app)上的代码 apply plugin: 'com.android.ap
我在android studio中收到此错误 Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com
我正在使用 Camera2Basic example由 Google 在 Android Studio 中测试应用程序。运行项目时出现此错误: Error:Execution failed for t
我正在尝试执行代码,但我在 gradle build 消息中收到错误消息 Execution failed for task ':app:transformClassesWithDexForDebu
我在这里看了很多线程,但仍然没有找到可行的解决方案。 当我想要构建 APK 时,出现了这个主要错误: Error:Execution failed for task ':app:transformCl
每次尝试构建 apk 时,我都会遇到同样的错误。我也尝试使用 PhoneGap Build,但无济于事。我检查过,我使用的 API 版本没问题,Java SDK 是最新的。我不确定问题出在哪里,也许是
构建失败 总时间:1分10.277秒失败:构建失败并出现异常。 出了什么问题:任务“:transformClassesWithDexForDebug”执行失败。 com.android.build.a
我将要构建apk时遇到此错误。 Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.buil
当我运行我的应用程序时,Android Studio 抛出以下错误: Error:Execution failed for task ':app:transformClassesWithDexForD
我在 android studio 的 android 项目中工作,当我开始运行 gradle build 并显示以下错误。谁帮我看看是什么问题 Error:Execution failed for
我是一名优秀的程序员,十分优秀!