解决“Plugin [id: 'net.minecraftforge.gradle.forge', version: '2.1-SNAPSHOT', artifact: 'com.github.ccbluex:ForgeGradle:FG_2.1-SNAPSHOT'] was not found”错误
This error occurs because the specified plugin 'net.minecraftforge.gradle.forge' with version '2.1-SNAPSHOT' and artifact 'com.github.ccbluex:ForgeGradle:FG_2.1-SNAPSHOT' could not be found.\n\nTo resolve this issue, you can try the following steps:\n\n1. Check if the plugin is available in the specified version. You can search for the plugin on the official Gradle plugin repository or the ForgeGradle documentation to verify the correct version and artifact.\n\n2. Make sure you have the correct repository configured in your build.gradle file. Add the following repository block to your build.gradle file if it's not already present:\n\n \n repositories {\n maven {\n name = "ForgeGradle"\n url = "https://files.minecraftforge.net/maven"\n }\n }\n \n\n3. Check your internet connection. If you are behind a proxy, make sure the proxy settings are correctly configured in Gradle.\n\n4. Try running the build with the '--refresh-dependencies' option. This will force Gradle to re-download all dependencies and plugins.\n\nIf none of the above steps work, please provide more information about your project setup and the contents of your build.gradle file, so that we can assist you further.
原文地址: https://www.cveoy.top/t/topic/pu96 著作权归作者所有。请勿转载和采集!