规格版本:
- 简体中文_English
- Gradle:Gradle 7.4.2
我总是犯这个错误
* What went wrong: Could not find method artifactory() for arguments [init_dma9eorkjulwy6d24gkunp9js$_run_closure1$_closure7@77cf9353] on project ':buildSrc' of type org.gradle.api.Project.enter code here
* Exception is: org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: Could not find method artifactory() for arguments [init_dma9eorkjulwy6d24gkunp9js$_run_closure1$_closure7@77cf9353] on project ':buildSrc' of type org.gradle.api.Project.
at org.gradle.internal.metaobject.AbstractDynamicObject.methodMissingException(AbstractDynamicObject.java:182)
at org.gradle.internal.metaobject.ConfigureDelegate.invokeMethod(ConfigureDelegate.java:86)
at init_dma9eorkjulwy6d24gkunp9js$_run_closure1.doCall
已尝试使用不同的java版本:jdk12,jdk13,jdk14。不幸的是,仍然有同样的问题。有什么建议解决方案吗?
先谢了。
2条答案
按热度按时间cu6pst1q1#
我刚刚意识到,我需要更新我的gradle版本也在我的仓库在这个文件。
gxwragnw2#
我认为正确的答案是-你忘了应用你的jfrog插件: