java Gradle -在init.gradle中找不到参数的方法artifactory()

t98cgbkg  于 2023-03-28  发布在  Java
关注(0)|答案(2)|浏览(221)

规格版本:

  • 简体中文_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。不幸的是,仍然有同样的问题。有什么建议解决方案吗?

先谢了。

cu6pst1q

cu6pst1q1#

我刚刚意识到,我需要更新我的gradle版本也在我的仓库在这个文件。

gxwragnw

gxwragnw2#

我认为正确的答案是-你忘了应用你的jfrog插件:

apply plugin: 'com.jfrog.artifactory'

相关问题