疯狂的橘猫-IDEA编译spring源码翻车记录:找不到Jar.class类的getArchiveFile(),Gradle Core Plugins (plugin is not in ‘org.gradle’ namespace):
标题一,导入spring源码,并且使用grade编译后遇到的问题:
报错:
1.找不到Jar.class类的getArchiveFile()
解决办法:
gradle版本过低导致找不到gradle中的某些类,重新安装高版本的gradle,如果不清楚安装哪个版本的,可以在参考该类的最后提交时间,安装早于该时间的gradle版本即可。
出处:https://blog.csdn.net/gooaaee/article/details/104437902
2.Gradle Core Plugins (plugin is not in ‘org.gradle’ namespace):
gradle command throwing below Exception:
Where: Build file '/path_to_project_gradle/build.gradle' line: 21
What went wrong: Plugin [id: 'org.springframework.boot', version: '2.1.4.RELEASE'] was not found in any of the following sources:
Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
Plugin Repositories (could not resolve plugin artifact 'org.springframework.boot:org.springframework.boot.gradle.plugin:2.1.4.RELEASE') Searched in the following repositories: Gradle Central Plugin Repository
解决办法:
出处:https://www.pianshen.com/article/9358371934/
不勾选:
offline work