- 例外情况是:
org.gradle.api.tasks.TaskExecutionException:任务':jarName:compileDebugJavaWithJavac'执行失败。
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
在org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
在org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
在org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
在org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
在org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52)
在org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
在org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
在org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
在org.gradle.execution.taskgraph.DefaultTaskGraphExecuter $ EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203)
在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.internal.concurrent.ExecutorPolicy $ CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
at org.gradle.internal.concurrent.StoppableExecutorImpl $ 1.run(StoppableExecutorImpl.java:40)
引起:org.gradle.api.GradleException:无法展开ZIP' C:\ drive \ projects \ work \ 2netSampleApp_2netMobileCore \ libs \ 2net-mobile-core-release.jar'。
在org.gradle.api.internal.file.archive.ZipFileTree.visit(ZipFileTree.java:99)
在org.gradle.api.internal.file.collections.FileTreeAdapter.visit(FileTreeAdapter.java:109)
在org.gradle.api.internal.file.AbstractFileTree $ FilteredFileTreeImpl.visit(AbstractFileTree.java:135)
在org.gradle.api.internal.tasks.compile.incremental.jar.DefaultJarSnapshotter.createSnapshot(DefaultJarSnapshotter.java:44)
在org.gradle.api.internal.tasks.compile.incremental.jar.DefaultJarSnapshotter.createSnapshot(DefaultJarSnapshotter.java:39)
在org.gradle.api.internal.tasks.compile.incremental.jar.CachingJarSnapshotter $ 1.create(CachingJarSnapshotter.java:43)
在org.gradle.api.internal.tasks.compile.incremental.jar.CachingJarSnapshotter $ 1.create(CachingJarSnapshotter.java:41)
在org.gradle.api.internal.tasks.compile.incremental.jar.DefaultJarSnapshotCache $ 2.create(DefaultJarSnapshotCache.java:56)
在org.gradle.api.internal.tasks.compile.incremental.jar.DefaultJarSnapshotCache $ 2.create(DefaultJarSnapshotCache.java:54)
在org.gradle.api.internal.cache.MinimalPersistentCache.get(MinimalPersistentCache.java:66)
在org.gradle.api.internal.tasks.compile.incremental.jar.DefaultJarSnapshotCache.get(DefaultJarSnapshotCache.java:54)
在org.gradle.api.internal.tasks.compile.incremental.jar.DefaultJarSnapshotCache.get(DefaultJarSnapshotCache.java:32)
在org.gradle.api.internal.tasks.compile.incremental.jar.CachingJarSnapshotter.createSnapshot(CachingJarSnapshotter.java:41)
at org.gradle.api.internal.tasks.compile.incremental.jar.JarClasspathSnapshotFactory.createSnapshot(JarClasspathSnapshotFactory.java:40)
在org.gradle.api.internal.tasks.compile.incremental.jar.JarClasspathSnapshotMaker.maybeInitialize(JarClasspathSnapshotMaker.java:60)
在org.gradle.api.internal.tasks.compile.incremental.jar.JarClasspathSnapshotMaker.storeJarSnapshots(JarClasspathSnapshotMaker.java:42)
在org.gradle.api.internal.tasks.compile.incremental.IncrementalCompilationFinalizer.execute(IncrementalCompilationFinalizer.java:46)
在org.gradle.api.internal.tasks.compile.incremental.IncrementalCompilationFinalizer.execute(IncrementalCompilationFinalizer.java:24)
在org.gradle.api.tasks.compile.JavaCompile.performCompilation(JavaCompile.java:157)
在org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:127)
在com.android.build.gradle.tasks.factory.AndroidJavaCompile.compile(AndroidJavaCompile.java:49)
在org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory $ IncrementalTaskAction.doExecute(AnnotationProcessingTaskFactory.java:244)
在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)
在org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory $ StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:209)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
在org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
... 14更多
引起:org.gradle.api.GradleException:无法复制zip条目C:\ drive \ projects \ work \ SampleApp \ SampleCore \ libs \ my_lib.jar!com / demo /
demo1 / a / b / DUMP.class到' C:\ drive \ projects \ work \ SampleApp \ SampleCore \ build \ tmp \ expandedArchives \ my_lib.jar_2q5x1be7tzirmbxnnkctt4jwl \ a \ b
Back Ground Info:
环境:Windows
我有一个由proguard混淆的Jar,它有多个同名但不同情况的文件。
例如:
包装演示
---------->一类
---------->的A.class
Gradle试图通过解压缩jar来扩展ZIP。但是,Windows无法在单个目录中保留相同的文件(具有相同名称但在不同情况下)。