eschao / android-PageFlip

3D Style Page Flip on Android
Apache License 2.0
1.74k stars 262 forks source link

Build failed at :Sample:transformClassesWithDexForDebug #42

Closed ValoisKhanh closed 6 years ago

ValoisKhanh commented 6 years ago

When I imported your project into my Android Studio and built it, it got the following error in :Sample:transformClassesWithDexForDebug

org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':Sample:transformClassesWithDexForDebug'. 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$1.execute(DefaultTaskGraphExecuter.java:236) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.execute(DefaultTaskGraphExecuter.java:228) at org.gradle.internal.Transformers$4.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$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$3.execute(DefaultGradleLauncher.java:196) at org.gradle.initialization.DefaultGradleLauncher$3.execute(DefaultGradleLauncher.java:193) at org.gradle.internal.Transformers$4.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$1.execute(RunAsBuildOperationBuildActionRunner.java:43) at org.gradle.tooling.internal.provider.runner.RunAsBuildOperationBuildActionRunner$1.execute(RunAsBuildOperationBuildActionRunner.java:40) at org.gradle.internal.Transformers$4.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$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.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$1.run(StartBuildOrRespondWithBusy.java:50) at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:297) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54) at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.RuntimeException: com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: Unable to pre-dex 'C:\Users\Pavilion Notebook 14.android\build-cache\6206aacd3ab69cef7072c587c0256735db1e2847\output\jars\classes.jar' to 'C:\Users\Pavilion Notebook 14\Desktop\android-PageFlip-master\android-PageFlip-master\Sample\build\intermediates\pre-dexed\debug\classes_ab235f8160567846bef21b613df9803cb4858c5e.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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) 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) ... 81 more Caused by: com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: Unable to pre-dex 'C:\Users\Pavilion Notebook 14.android\build-cache\6206aacd3ab69cef7072c587c0256735db1e2847\output\jars\classes.jar' to 'C:\Users\Pavilion Notebook 14\Desktop\android-PageFlip-master\android-PageFlip-master\Sample\build\intermediates\pre-dexed\debug\classes_ab235f8160567846bef21b613df9803cb4858c5e.jar' 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) ... 92 more Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Unable to pre-dex 'C:\Users\Pavilion Notebook 14.android\build-cache\6206aacd3ab69cef7072c587c0256735db1e2847\output\jars\classes.jar' to 'C:\Users\Pavilion Notebook 14\Desktop\android-PageFlip-master\android-PageFlip-master\Sample\build\intermediates\pre-dexed\debug\classes_ab235f8160567846bef21b613df9803cb4858c5e.jar' at com.android.ide.common.internal.WaitableExecutor.waitForTasksWithQuickFail(WaitableExecutor.java:147) at com.android.build.gradle.internal.transforms.DexTransform.transform(DexTransform.java:408) ... 95 more Caused by: java.lang.RuntimeException: Unable to pre-dex 'C:\Users\Pavilion Notebook 14.android\build-cache\6206aacd3ab69cef7072c587c0256735db1e2847\output\jars\classes.jar' to 'C:\Users\Pavilion Notebook 14\Desktop\android-PageFlip-master\android-PageFlip-master\Sample\build\intermediates\pre-dexed\debug\classes_ab235f8160567846bef21b613df9803cb4858c5e.jar' at com.android.build.gradle.internal.transforms.DexTransform$PreDexTask.call(DexTransform.java:521) at com.android.build.gradle.internal.transforms.DexTransform$PreDexTask.call(DexTransform.java:457) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) ... 3 more Caused by: java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.builder.utils.FileCache$FileCreatorException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.android.dx.command.Main with arguments {--dex --num-threads=4 --output C:\Users\Pavilion Notebook 14\Desktop\android-PageFlip-master\android-PageFlip-master\Sample\build\intermediates\pre-dexed\debug\classes_ab235f8160567846bef21b613df9803cb4858c5e.jar C:\Users\Pavilion Notebook 14.android\build-cache\6206aacd3ab69cef7072c587c0256735db1e2847\output\jars\classes.jar} at com.android.builder.utils.FileCache.doInterProcessLocked(FileCache.java:680) at com.android.builder.utils.FileCache.doLocked(FileCache.java:639) at com.android.builder.utils.FileCache.queryCacheEntry(FileCache.java:395) at com.android.builder.utils.FileCache.createFile(FileCache.java:290) at com.android.build.gradle.internal.transforms.DexTransform$PreDexTask.call(DexTransform.java:518) ... 7 more Caused by: java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.builder.utils.FileCache$FileCreatorException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.android.dx.command.Main with arguments {--dex --num-threads=4 --output C:\Users\Pavilion Notebook 14\Desktop\android-PageFlip-master\android-PageFlip-master\Sample\build\intermediates\pre-dexed\debug\classes_ab235f8160567846bef21b613df9803cb4858c5e.jar C:\Users\Pavilion Notebook 14.android\build-cache\6206aacd3ab69cef7072c587c0256735db1e2847\output\jars\classes.jar} at com.android.builder.utils.FileCache.doInterProcessLocked(FileCache.java:680) at com.android.builder.utils.FileCache.doLocked(FileCache.java:639) at com.android.builder.utils.FileCache.lambda$queryCacheEntry$10(FileCache.java:419) at com.android.builder.utils.FileCache.doInterProcessLocked(FileCache.java:678) ... 11 more Caused by: java.util.concurrent.ExecutionException: com.android.builder.utils.FileCache$FileCreatorException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.android.dx.command.Main with arguments {--dex --num-threads=4 --output C:\Users\Pavilion Notebook 14\Desktop\android-PageFlip-master\android-PageFlip-master\Sample\build\intermediates\pre-dexed\debug\classes_ab235f8160567846bef21b613df9803cb4858c5e.jar C:\Users\Pavilion Notebook 14.android\build-cache\6206aacd3ab69cef7072c587c0256735db1e2847\output\jars\classes.jar} at com.android.builder.utils.FileCache.doInterProcessLocked(FileCache.java:680) at com.android.builder.utils.FileCache.doLocked(FileCache.java:639) at com.android.builder.utils.FileCache.lambda$createFile$5(FileCache.java:282) at com.android.builder.utils.FileCache.lambda$null$9(FileCache.java:440) at com.android.builder.utils.FileCache.doInterProcessLocked(FileCache.java:678) ... 14 more Caused by: com.android.builder.utils.FileCache$FileCreatorException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.android.dx.command.Main with arguments {--dex --num-threads=4 --output C:\Users\Pavilion Notebook 14\Desktop\android-PageFlip-master\android-PageFlip-master\Sample\build\intermediates\pre-dexed\debug\classes_ab235f8160567846bef21b613df9803cb4858c5e.jar C:\Users\Pavilion Notebook 14.android\build-cache\6206aacd3ab69cef7072c587c0256735db1e2847\output\jars\classes.jar} at com.android.builder.utils.FileCache.lambda$createFile$0(FileCache.java:241) at com.android.builder.utils.FileCache.lambda$null$4(FileCache.java:285) at com.android.builder.utils.FileCache.doInterProcessLocked(FileCache.java:678) ... 18 more Caused by: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.android.dx.command.Main with arguments {--dex --num-threads=4 --output C:\Users\Pavilion Notebook 14\Desktop\android-PageFlip-master\android-PageFlip-master\Sample\build\intermediates\pre-dexed\debug\classes_ab235f8160567846bef21b613df9803cb4858c5e.jar C:\Users\Pavilion Notebook 14.android\build-cache\6206aacd3ab69cef7072c587c0256735db1e2847\output\jars\classes.jar} at com.android.builder.core.DexByteCodeConverter.dexOutOfProcess(DexByteCodeConverter.java:211) at com.android.builder.core.DexByteCodeConverter.runDexer(DexByteCodeConverter.java:160) at com.android.builder.core.AndroidBuilder.preDexLibraryNoCache(AndroidBuilder.java:1464) at com.android.builder.internal.compiler.PreDexCache.preDexLibrary(PreDexCache.java:129) at com.android.builder.core.AndroidBuilder.preDexLibrary(AndroidBuilder.java:1415) at com.android.build.gradle.internal.transforms.DexTransform$PreDexTask.lambda$call$0(DexTransform.java:503) at com.android.builder.utils.FileCache.lambda$createFile$0(FileCache.java:239) ... 20 more Caused by: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.android.dx.command.Main with arguments {--dex --num-threads=4 --output C:\Users\Pavilion Notebook 14\Desktop\android-PageFlip-master\android-PageFlip-master\Sample\build\intermediates\pre-dexed\debug\classes_ab235f8160567846bef21b613df9803cb4858c5e.jar C:\Users\Pavilion Notebook 14.android\build-cache\6206aacd3ab69cef7072c587c0256735db1e2847\output\jars\classes.jar} at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:192) at com.android.builder.core.DexByteCodeConverter.dexOutOfProcess(DexByteCodeConverter.java:207) ... 26 more Caused by: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.android.dx.command.Main with arguments {--dex --num-threads=4 --output C:\Users\Pavilion Notebook 14\Desktop\android-PageFlip-master\android-PageFlip-master\Sample\build\intermediates\pre-dexed\debug\classes_ab235f8160567846bef21b613df9803cb4858c5e.jar C:\Users\Pavilion Notebook 14.android\build-cache\6206aacd3ab69cef7072c587c0256735db1e2847\output\jars\classes.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.DexByteCodeConverter.lambda$dexOutOfProcess$1(DexByteCodeConverter.java:197) ... 4 more Caused 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) ... 5 more

Thanks in advance.