赞
踩
github上下载的gradle项目,在idea构建时候报错,如下
Unable to find method 'org.gradle.api.artifacts.result.ComponentSelectionReason.getDescription()Ljava/lang/String;'.
Possible causes for this unexpected error include:
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart)
Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
IDEA的版本和gradle的版本不兼容,需要降低gradle的版本或者升级Idea的版本(本人用的IDEA2019,gradle版本从7.4降为6.9.3)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。