In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you what is the reason for the failure of IDEA importing Spring-kafka project Gradle compilation. I hope you will get something after reading this article. Let's discuss it together.
Exception information java.lang.AbstractMethodError at org.gradle.api.internal.artifacts.ivyservice.resolutionstrategy.DefaultCachePolicy.mustRefreshModule (DefaultCachePolicy.java:205) at org.gradle.api.internal.artifacts.ivyservice.resolutionstrategy.DefaultCachePolicy.mustRefreshModule (DefaultCachePolicy.java:192) at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModuleComponentRepository$LocateInCacheRepositoryAccess.resolveComponentMetaDataFromCache (CachingModuleComponentRepository.java:212) at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModuleComponentRepository$LocateInCacheRepositoryAccess.resolveComponentMetaData (CachingModuleComponentRepository. Java:185) specific reasons for at org.gradle.api.internal.artifacts.ivyservice.ivyresolve
This exception is caused by the update of the Gradle version. If the local Gradle version is not configured in IDEA, the latest Gradle version 5.x will be pulled by default. On the other hand, many people reported that there was something wrong with 5.x, such as the official issue of Githubs:
Gradle-issue: https://github.com/gradle/gradle/issues/8088
Solve the problem
If the upgrade is the cause of the problem, then we lower the version will be ok. In fact, the latest version so far is 5.4.1, so I tried several lower versions of 5.x and did not successfully compile and import the project until it was reduced to 4.10.2.
After testing, the following exception will be thrown under version 4.6 of Gradle, indicating that the information of xxx.jar cannot be found:
Cannot find JAR 'bcprov-jdk15on-1.58.jar' required by module' gradle-dependency-management' using classpath or distribution directory'E:\ runtime\ gradle-4.6'
So if you are also compiling a Spring-kafka project, choose version 4.10.2 directly and ok it.
Gradle download address: http://services.gradle.org/distributions/
Find the package of-bin.zip from the address above, which is, of course, the 4.x version. Extract it directly to the local directory, then open the settings of IDEA and find the configuration pointed to by the arrow below
Gradle home can select the directory you just unzipped, and will automatically trigger the recompilation after submission.
After reading this article, I believe you have a certain understanding of "what is the reason for the failure of Gradle compilation of IDEA import Spring-kafka project". If you want to know more about it, welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.