Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Can't download client-1.16.5-extra.jar. I am using forge-1.16.5-36.2.2-mdk


Solen_ya
 Share

Recommended Posts

I delete everything under the .gradle and it still have the same problem

Error message

Could not run phased build action using connection to Gradle distribution 'https://services.gradle.org/distributions/gradle-7.1.1-bin.zip'.
A problem occurred configuring root project 'forge-1.16.5-36.2.2-mdk'.
Could not resolve all files for configuration ':_compileJava_1'.
Could not find client-1.16.5-extra.jar (net.minecraft:client:1.16.5).
Searched in the following locations:
    file:/C:/Users/Creed/.gradle/caches/forge_gradle/bundeled_repo/net/minecraft/client/1.16.5/client-1.16.5-extra.jar

Error output

[info] [gradle-server] Server started, listening on 50699

[info] Gradle client connected to server

[info] Java Home: D:\Complier\Java\jdk-16.0.2

[info] JVM Args: --add-opens,java.base/java.util=ALL-UNNAMED,--add-opens,java.base/java.lang=ALL-UNNAMED,--add-opens,java.base/java.lang.invoke=ALL-UNNAMED,--add-opens,java.base/java.util=ALL-UNNAMED,--add-opens,java.prefs/java.util.prefs=ALL-UNNAMED,--add-opens,java.prefs/java.util.prefs=ALL-UNNAMED,--add-opens,java.base/java.nio.charset=ALL-UNNAMED,--add-opens,java.base/java.net=ALL-UNNAMED,--add-opens,java.base/java.util.concurrent.atomic=ALL-UNNAMED,-Xmx3G,-Dfile.encoding=GBK,-Duser.country=CN,-Duser.language=zh,-Duser.variant

[info] Gradle User Home: C:\Users\Creed\.gradle

[info] Gradle Version: 7.1.1

[info] > Configure project :

Java: 16.0.2 JVM: 16.0.2+7-67(Oracle Corporation) Arch: amd64

WARNING: This project is configured to use the official obfuscation mappings provided by Mojang. These mapping fall under their associated license, you should be fully aware of this license. For the latest license text, refer below, or the reference copy here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md, You can hide this warning by running the `hideOfficialWarningUntilChanged` task

WARNING: (c) 2020 Microsoft Corporation. These mappings are provided "as-is" and you bear the risk of using them. You may copy and use the mappings for development purposes, but you may not redistribute the mappings complete and unmodified. Microsoft makes no warranties, express or implied, with respect to the mappings provided here.  Use and modification of this document or the source code (in any form) of Minecraft: Java Edition is governed by the Minecraft End User License Agreement available at https://account.mojang.com/documents/minecraft_eula.

 

Directory 'D:\Complier\Java\jdk1.8.0_251' (Windows Registry) used for java installations does not exist

Directory 'D:\Complier\Java\jdk1.8.0_251' (Windows Registry) used for java installations does not exist

 

> Configure project :

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

java.util.zip.ZipException: zip END header not found

    at java.base/java.util.zip.ZipFile$Source.zerror(ZipFile.java:1608)

    at java.base/java.util.zip.ZipFile$Source.findEND(ZipFile.java:1460)

    at java.base/java.util.zip.ZipFile$Source.initCEN(ZipFile.java:1469)

    at java.base/java.util.zip.ZipFile$Source.<init>(ZipFile.java:1281)

    at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1243)

    at java.base/java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:707)

    at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:241)

    at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:171)

    at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:185)

    at net.minecraftforge.gradle.common.config.MCPConfigV2.getFromArchive(MCPConfigV2.java:45)

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

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

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

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

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

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

    at net.minecraftforge.gradle.common.util.BaseRepo$Builder.lambda$null$0(BaseRepo.java:133)

    at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)

    at java.base/java.util.ArrayList$ArrayListSpliterator.tryAdvance(ArrayList.java:1602)

    at java.base/java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:129)

    at java.base/java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:502)

    at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:488)

    at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)

    at java.base/java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:150)

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

    at java.base/java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:647)

    at net.minecraftforge.gradle.common.util.BaseRepo$Builder.lambda$attach$2(BaseRepo.java:135)

    at net.minecraftforge.artifactural.base.repository.ArtifactProviderBuilder$Complete.getArtifact(ArtifactProviderBuilder.java:92)

    at net.minecraftforge.artifactural.base.repository.SimpleRepository.getArtifact(SimpleRepository.java:41)

    at net.minecraftforge.artifactural.gradle.GradleRepositoryAdapter$GeneratingFileResourceRepository.findArtifact(GradleRepositoryAdapter.java:290)

    at net.minecraftforge.artifactural.gradle.GradleRepositoryAdapter$GeneratingFileResourceRepository.resource(GradleRepositoryAdapter.java:269)

    at net.minecraftforge.artifactural.gradle.GradleRepositoryAdapter$GeneratingFileResourceRepository.resource(GradleRepositoryAdapter.java:263)

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

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

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

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

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

    at net.minecraftforge.artifactural.gradle.GradleRepositoryAdapter$1$1.resolveArtifact(GradleRepositoryAdapter.java:211)

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

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

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

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

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

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

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

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

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

    at org.gradle.api.internal.artifacts.ivyservice.resolveengine.artifact.DefaultArtifactSet$LazyArtifactSupplier.calculateValue(DefaultArtifactSet.java:273)

    at org.gradle.api.internal.artifacts.ivyservice.resolveengine.artifact.DefaultArtifactSet$LazyArtifactSupplier.calculateValue(DefaultArtifactSet.java:244)

    at org.gradle.internal.model.CalculatedValueContainer$CalculationState.lambda$attachValue$0(CalculatedValueContainer.java:218)

    at org.gradle.internal.Try.ofFailable(Try.java:39)

    at org.gradle.internal.model.CalculatedValueContainer$CalculationState.attachValue(CalculatedValueContainer.java:213)

    at org.gradle.internal.model.CalculatedValueContainer.finalizeIfNotAlready(CalculatedValueContainer.java:186)

    at org.gradle.internal.model.CalculatedValueContainer.finalizeIfNotAlready(CalculatedValueContainer.java:177)

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

    at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:75)

    at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:68)

    at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153)

    at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68)

    at org.gradle.internal.operations.DefaultBuildOperationExecutor$QueueWorker.execute(DefaultBuildOperationExecutor.java:220)

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

    at org.gradle.internal.operations.DefaultBuildOperationQueue$WorkerRunnable.doRunBatch(DefaultBuildOperationQueue.java:224)

    at org.gradle.internal.operations.DefaultBuildOperationQueue$WorkerRunnable.lambda$runBatch$0(DefaultBuildOperationQueue.java:214)

    at org.gradle.internal.resources.AbstractResourceLockRegistry.whileDisallowingLockChanges(AbstractResourceLockRegistry.java:70)

    at org.gradle.internal.work.DefaultWorkerLeaseService.whileDisallowingProjectLockChanges(DefaultWorkerLeaseService.java:185)

    at org.gradle.internal.operations.DefaultBuildOperationQueue$WorkerRunnable.lambda$runBatch$1(DefaultBuildOperationQueue.java:214)

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

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

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

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

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

    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)

    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)

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

    at java.base/java.lang.Thread.run(Thread.java:831)

[error] FAILURE: Build failed with an exception.

 

* What went wrong:

A problem occurred configuring root project 'forge-1.16.5-36.2.2-mdk'.

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

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

     Searched in the following locations:

         file:/C:/Users/Creed/.gradle/caches/forge_gradle/bundeled_repo/net/minecraft/client/1.16.5/client-1.16.5-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

 

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

 

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

 

See https://docs.gradle.org/7.1.1/userguide/command_line_interface.html#sec:command_line_warnings

 

CONFIGURE FAILED in 8s

[error] [gradle-server] Could not fetch model of type 'GradleProject' using Gradle distribution 'https://services.gradle.org/distributions/gradle-7.1.1-bin.zip'.

[error] Error getting build for e:\Works\ForgeProject\forge-1.16.5-36.2.2-mdk: Could not fetch model of type 'GradleProject' using Gradle distribution 'https://services.gradle.org/distributions/gradle-7.1.1-bin.zip'.

[info] Found 0 tasks

Link to comment
Share on other sites

20 minutes ago, diesieben07 said:

You have an invalid jar file somewhere in your gradle cache, this can happen if you cancel one of the ForgeGradle tasks.

The easiest way to solve it is to delete .gradle/caches/forge_gradle in your user home folder.

It works! I restart my computer and  delete this folder, then the jar file problem solved. Thank you!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.