"Could not resolve all files for configuration ':_compileJava_1'."

Published by Alotta on Sat, 04/04/2020 - 02:41
Status
Resolved
Type
Product/platform
MCreator/Windows
Priority
Normal
Issue description

Whenever I try to set up any mod workspace it gives me this.

 

Executing Gradle task: eclipse

Build info: MCreator 2020.2.14217, 1.14.4, 64-bit, 18349 MB, Windows 10, JVM 1.8.0_232, JAVA_HOME: C:\Users\parro\Applications\MCreator20202\jdk

Download https://files.minecraftforge.net/maven/net/minecraftforge/artifactural/…

Download https://files.minecraftforge.net/maven/net/minecraftforge/artifactural/…

Download https://files.minecraftforge.net/maven/net/minecraftforge/artifactural/…

> Configure project :

New Dep: net.minecraftforge:forge:1.14.4-28.2.3_mapped_snapshot_20190719-1.14.3

Error getting artifact: net.minecraft:client:1.14.4:extra@jar from  MinecraftRepo

java.util.zip.ZipException: error in opening zip file

   at java.util.zip.ZipFile.open(Native Method)

   at java.util.zip.ZipFile.<init>(ZipFile.java:225)

   at java.util.zip.ZipFile.<init>(ZipFile.java:225)

   at java.util.zip.ZipFile.<init>(ZipFile.java:155)

   at java.util.zip.ZipFile.<init>(ZipFile.java:155)

   at java.util.zip.ZipFile.<init>(ZipFile.java:169)

   at java.util.zip.ZipFile.<init>(ZipFile.java:169)

   at net.minecraftforge.gradle.common.util.Utils.getZipData(Utils.java:315)

   at net.minecraftforge.gradle.common.util.Utils.getZipData(Utils.java:315)

   at net.minecraftforge.gradle.common.util.MinecraftRepo$MCPWrapperSlim.<init>(MinecraftRepo.java:376)

   at net.minecraftforge.gradle.common.util.MinecraftRepo$MCPWrapperSlim.<init>(MinecraftRepo.java:376)

   at net.minecraftforge.gradle.common.util.MinecraftRepo.findMcpMappings(MinecraftRepo.java:164)

   at net.minecraftforge.gradle.common.util.MinecraftRepo.findMcpMappings(MinecraftRepo.java:164)

   at net.minecraftforge.gradle.common.util.MinecraftRepo.findExtra(MinecraftRepo.java:256)

   at net.minecraftforge.gradle.common.util.MinecraftRepo.findExtra(MinecraftRepo.java:256)

   at net.minecraftforge.gradle.common.util.MinecraftRepo.findFile(MinecraftRepo.java:137)

   at net.minecraftforge.gradle.common.util.MinecraftRepo.findFile(MinecraftRepo.java:137)

   at net.minecraftforge.gradle.common.util.BaseRepo.getArtifact(BaseRepo.java:81)

   at net.minecraftforge.gradle.common.util.BaseRepo.getArtifact(BaseRepo.java:81)

   at net.minecraftforge.gradle.common.util.BaseRepo.getArtifact(BaseRepo.java:41)

   at net.minecraftforge.gradle.common.util.BaseRepo.getArtifact(BaseRepo.java:41)

   at net.minecraftforge.gradle.common.util.BaseRepo$Builder$1.lambda$getArtifact$0(BaseRepo.java:127)

   at net.minecraftforge.gradle.common.util.BaseRepo$Builder$1.lambda$getArtifact$0(BaseRepo.java:127)

   at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)

   at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)

   at java.util.ArrayList$ArrayListSpliterator.tryAdvance(ArrayList.java:1359)

   at java.util.ArrayList$ArrayListSpliterator.tryAdvance(ArrayList.java:1359)

   at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)

   at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)

   at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:499)

   at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:499)

   at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:486)

   at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:486)

   at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)

   at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)

   at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)

   at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)

   at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)

   at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)

   at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:531)

   at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:531)

   at net.minecraftforge.gradle.common.util.BaseRepo$Builder$1.getArtifact(BaseRepo.java:127)

   at net.minecraftforge.gradle.common.util.BaseRepo$Builder$1.getArtifact(BaseRepo.java:127)

   at net.minecraftforge.gradle.common.util.BaseRepo$Builder$1.getArtifact(BaseRepo.java:124)

   at net.minecraftforge.gradle.common.util.BaseRepo$Builder$1.getArtifact(BaseRepo.java:124)

   at com.amadornes.artifactural.base.repository.ArtifactProviderBuilder$Complete.getArtifact(ArtifactProviderBuilder.java:92)

   at com.amadornes.artifactural.base.repository.ArtifactProviderBuilder$Complete.getArtifact(ArtifactProviderBuilder.java:92)

   at com.amadornes.artifactural.base.repository.SimpleRepository.getArtifact(SimpleRepository.java:41)

   at com.amadornes.artifactural.base.repository.SimpleRepository.getArtifact(SimpleRepository.java:41)

   at com.amadornes.artifactural.gradle.GradleRepositoryAdapter$GeneratingFileResourceRepository.findArtifact(GradleRepositoryAdapter.java:298)

   at com.amadornes.artifactural.gradle.GradleRepositoryAdapter$GeneratingFileResourceRepository.findArtifact(GradleRepositoryAdapter.java:298)

   at com.amadornes.artifactural.gradle.GradleRepositoryAdapter$GeneratingFileResourceRepository.resource(GradleRepositoryAdapter.java:277)

   at com.amadornes.artifactural.gradle.GradleRepositoryAdapter$GeneratingFileResourceRepository.resource(GradleRepositoryAdapter.java:277)

   at com.amadornes.artifactural.gradle.GradleRepositoryAdapter$GeneratingFileResourceRepository.resource(GradleRepositoryAdapter.java:271)

   at com.amadornes.artifactural.gradle.GradleRepositoryAdapter$GeneratingFileResourceRepository.resource(GradleRepositoryAdapter.java:271)

   at org.gradle.internal.resource.transport.file.FileTransport$FileCacheAwareExternalResourceAccessor.getResource(FileTransport.java:70)

   at org.gradle.internal.resource.transport.file.FileTransport$FileCacheAwareExternalResourceAccessor.getResource(FileTransport.java:70)

   at org.gradle.api.internal.artifacts.repositories.resolver.DefaultExternalResourceArtifactResolver.downloadByCoords(DefaultExternalResourceArtifactResolver.java:138)

   at org.gradle.api.internal.artifacts.repositories.resolver.DefaultExternalResourceArtifactResolver.downloadByCoords(DefaultExternalResourceArtifactResolver.java:138)

   at org.gradle.api.internal.artifacts.repositories.resolver.DefaultExternalResourceArtifactResolver.downloadStaticResource(DefaultExternalResourceArtifactResolver.java:98)

   at org.gradle.api.internal.artifacts.repositories.resolver.DefaultExternalResourceArtifactResolver.downloadStaticResource(DefaultExternalResourceArtifactResolver.java:98)

   at org.gradle.api.internal.artifacts.repositories.resolver.DefaultExternalResourceArtifactResolver.resolveArtifact(DefaultExternalResourceArtifactResolver.java:67)

   at org.gradle.api.internal.artifacts.repositories.resolver.DefaultExternalResourceArtifactResolver.resolveArtifact(DefaultExternalResourceArtifactResolver.java:67)

   at org.gradle.api.internal.artifacts.repositories.resolver.ExternalResourceResolver$RemoteRepositoryAccess.resolveArtifact(ExternalResourceResolver.java:477)

   at org.gradle.api.internal.artifacts.repositories.resolver.ExternalResourceResolver$RemoteRepositoryAccess.resolveArtifact(ExternalResourceResolver.java:477)

   at com.amadornes.artifactural.gradle.GradleRepositoryAdapter$1$1.resolveArtifact(GradleRepositoryAdapter.java:207)

   at com.amadornes.artifactural.gradle.GradleRepositoryAdapter$1$1.resolveArtifact(GradleRepositoryAdapter.java:207)

   at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModuleComponentRepository$ResolveAndCacheRepositoryAccess.resolveArtifact(CachingModuleComponentRepository.java:424)

   at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModuleComponentRepository$ResolveAndCacheRepositoryAccess.resolveArtifact(CachingModuleComponentRepository.java:424)

   at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.LocalModuleComponentRepository$LocalAccess.resolveArtifact(LocalModuleComponentRepository.java:105)

   at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.LocalModuleComponentRepository$LocalAccess.resolveArtifact(LocalModuleComponentRepository.java:105)

   at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.ErrorHandlingModuleComponentRepository$ErrorHandlingModuleComponentRepositoryAccess.resolveArtifact(ErrorHandlingModuleComponentRepository.java:183)

   at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.ErrorHandlingModuleComponentRepository$ErrorHandlingModuleComponentRepositoryAccess.resolveArtifact(ErrorHandlingModuleComponentRepository.java:183)

   at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainArtifactResolver.resolveArtifact(RepositoryChainArtifactResolver.java:79)

   at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainArtifactResolver.resolveArtifact(RepositoryChainArtifactResolver.java:79)

   at org.gradle.api.internal.artifacts.ivyservice.resolveengine.ComponentResolversChain$ArtifactResolverChain.resolveArtifact(ComponentResolversChain.java:122)

   at org.gradle.api.internal.artifacts.ivyservice.resolveengine.ComponentResolversChain$ArtifactResolverChain.resolveArtifact(ComponentResolversChain.java:122)

   at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.ErrorHandlingArtifactResolver.resolveArtifact(ErrorHandlingArtifactResolver.java:46)

   at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.ErrorHandlingArtifactResolver.resolveArtifact(ErrorHandlingArtifactResolver.java:46)

   at org.gradle.api.internal.artifacts.ivyservice.resolveengine.artifact.DefaultArtifactSet$LazyArtifactSource.create(DefaultArtifactSet.java:178)

   at org.gradle.api.internal.artifacts.ivyservice.resolveengine.artifact.DefaultArtifactSet$LazyArtifactSource.create(DefaultArtifactSet.java:178)

   at org.gradle.api.internal.artifacts.ivyservice.resolveengine.artifact.DefaultArtifactSet$LazyArtifactSource.create(DefaultArtifactSet.java:165)

   at org.gradle.api.internal.artifacts.ivyservice.resolveengine.artifact.DefaultArtifactSet$LazyArtifactSource.create(DefaultArtifactSet.java:165)

   at org.gradle.api.internal.artifacts.DefaultResolvedArtifact.getFile(DefaultResolvedArtifact.java:142)

   at org.gradle.api.internal.artifacts.DefaultResolvedArtifact.getFile(DefaultResolvedArtifact.java:142)

   at org.gradle.api.internal.artifacts.ivyservice.resolveengine.artifact.ArtifactBackedResolvedVariant$DownloadArtifactFile.run(ArtifactBackedResolvedVariant.java:153)

   at org.gradle.api.internal.artifacts.ivyservice.resolveengine.artifact.ArtifactBackedResolvedVariant$DownloadArtifactFile.run(ArtifactBackedResolvedVariant.java:153)

   at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)

   at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)

   at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)

   at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)

   at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)

   at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)

   at org.gradle.internal.operations.DefaultBuildOperationExecutor.access$900(DefaultBuildOperationExecutor.java:48)

   at org.gradle.internal.operations.DefaultBuildOperationExecutor.access$900(DefaultBuildOperationExecutor.java:48)

   at org.gradle.internal.operations.DefaultBuildOperationExecutor$ParentPreservingQueueWorker.execute(DefaultBuildOperationExecutor.java:342)

   at org.gradle.internal.operations.DefaultBuildOperationExecutor$ParentPreservingQueueWorker.execute(DefaultBuildOperationExecutor.java:342)

   at org.gradle.internal.operations.DefaultBuildOperationQueue$WorkerRunnable.runOperation(DefaultBuildOperationQueue.java:230)

   at org.gradle.internal.operations.DefaultBuildOperationQueue$WorkerRunnable.runOperation(DefaultBuildOperationQueue.java:230)

   at org.gradle.internal.operations.DefaultBuildOperationQueue$WorkerRunnable.access$600(DefaultBuildOperationQueue.java:172)

   at org.gradle.internal.operations.DefaultBuildOperationQueue$WorkerRunnable.access$600(DefaultBuildOperationQueue.java:172)

   at org.gradle.internal.operations.DefaultBuildOperationQueue$WorkerRunnable$1.call(DefaultBuildOperationQueue.java:209)

   at org.gradle.internal.operations.DefaultBuildOperationQueue$WorkerRunnable$1.call(DefaultBuildOperationQueue.java:209)

   at org.gradle.internal.operations.DefaultBuildOperationQueue$WorkerRunnable$1.call(DefaultBuildOperationQueue.java:203)

   at org.gradle.internal.operations.DefaultBuildOperationQueue$WorkerRunnable$1.call(DefaultBuildOperationQueue.java:203)

   at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:152)

   at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:152)

   at org.gradle.internal.operations.DefaultBuildOperationQueue$WorkerRunnable.runBatch(DefaultBuildOperationQueue.java:202)

   at org.gradle.internal.operations.DefaultBuildOperationQueue$WorkerRunnable.runBatch(DefaultBuildOperationQueue.java:202)

   at org.gradle.internal.operations.DefaultBuildOperationQueue$WorkerRunnable.run(DefaultBuildOperationQueue.java:177)

   at org.gradle.internal.operations.DefaultBuildOperationQueue$WorkerRunnable.run(DefaultBuildOperationQueue.java:177)

   at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)

   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.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)

   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

   at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)

   at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)

   at java.lang.Thread.run(Thread.java:748)

   at java.lang.Thread.run(Thread.java:748)

FAILURE: Build failed with an exception.

* What went wrong:

A problem occurred configuring root project 'willitwork'.

> Could not resolve all files for configuration ':_compileJava_1'.

   > Could not find client-extra.jar (net.minecraft:client:1.14.4).

     Searched in the following locations:

         file:/C:/Users/parro/.mcreator/gradle/caches/forge_gradle/bundeled_repo/net/minecraft/client/1.14.4/client-1.14.4-extra.jar

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 13s

BUILD FAILED

Task completed in 14220 milliseconds

 

I searched for anyone with the same issue, and there was nothing.

Issue comments

Delete full C:/Users/parro/.mcreator/gradle/ folder and check all suggestion in the second most common solution then.

The first thing that I did was deleting the entire Gradle folder in the .mcreator folder, as well as the .gradle folder in the Users/(My username)/ folder. I then restarted my computer and tried to set up another workplace. It didn't work, giving the same error. I then deleted the Gradle folder in .mcreator again, followed by trying to set up another workplace. Still, same error.

Does file C:/Users/parro/.mcreator/gradle/caches/forge_gradle/bundeled_repo/net/minecraft/client/1.14.4/client-1.14.4-extra.jar exist? And check if you can open it with a ZIP opener?

Could you delete folder C:/Users/parro/.mcreator/gradle/ again, open one of the workspaces and build the workspace and post the full console log when you do this first build after removal. To me it seems like something is blocking MCreator from accessing the files that should be there. Try turning off AV if you have it to test this hypothesis too.

Ok, here you go.

 

Executing Gradle task: eclipse

Build info: MCreator 2020.2.14217, 1.14.4, 64-bit, 18349 MB, Windows 10, JVM 1.8.0_232, JAVA_HOME: C:\Users\parro\Applications\MCreator20202\jdk

org.gradle.tooling.GradleConnectionException: Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle-4.9-bin.zip'.

   at org.gradle.tooling.internal.consumer.DistributionFactory$ZippedDistribution.getToolingImplementationClasspath(DistributionFactory.java:139)

   at org.gradle.tooling.internal.consumer.loader.CachingToolingImplementationLoader.create(CachingToolingImplementationLoader.java:41)

   at org.gradle.tooling.internal.consumer.loader.SynchronizedToolingImplementationLoader.create(SynchronizedToolingImplementationLoader.java:44)

   at org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor.onStartAction(LazyConsumerActionExecutor.java:104)

   at org.gradle.tooling.internal.consumer.connection.LazyConsumerActionExecutor.run(LazyConsumerActionExecutor.java:86)

   at org.gradle.tooling.internal.consumer.connection.CancellableConsumerActionExecutor.run(CancellableConsumerActionExecutor.java:45)

   at org.gradle.tooling.internal.consumer.connection.ProgressLoggingConsumerActionExecutor.run(ProgressLoggingConsumerActionExecutor.java:61)

   at org.gradle.tooling.internal.consumer.connection.RethrowingErrorsConsumerActionExecutor.run(RethrowingErrorsConsumerActionExecutor.java:38)

   at org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor.lambda$run$0(DefaultAsyncConsumerActionExecutor.java:55)

   at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)

   at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)

   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

   at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)

   at java.lang.Thread.run(Thread.java:748)

Caused by: java.util.zip.ZipException: error in opening zip file

   at java.util.zip.ZipFile.open(Native Method)

   at java.util.zip.ZipFile.<init>(ZipFile.java:225)

   at java.util.zip.ZipFile.<init>(ZipFile.java:155)

   at java.util.zip.ZipFile.<init>(ZipFile.java:169)

   at org.gradle.wrapper.Install.unzip(Install.java:235)

   at org.gradle.wrapper.Install.access$900(Install.java:27)

   at org.gradle.wrapper.Install$1.call(Install.java:81)

   at org.gradle.wrapper.Install$1.call(Install.java:48)

   at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:69)

   at org.gradle.wrapper.Install.createDist(Install.java:48)

   at org.gradle.tooling.internal.consumer.DistributionInstaller.install(DistributionInstaller.java:72)

   at org.gradle.tooling.internal.consumer.DistributionFactory$ZippedDistribution.getToolingImplementationClasspath(DistributionFactory.java:133)

   ... 14 more

TASK EXECUTION FAILED

Task completed in 1106202 milliseconds



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.