美文网首页
Could not find method developers

Could not find method developers

作者: 安仔夏天勤奋 | 来源:发表于2021-05-12 14:53 被阅读0次

异常信息

当你拉取一些久时工程代码时,编译时出现以下异常。

A problem occurred configuring project ':rctswitch'.
> Could not find method developers() for arguments [com.xxx.smart.upload.MavenPublishPlugin$_recordDeveloper_closure6@31850c33] on object of type org.gradle.api.publish.maven.internal.publication.DefaultMavenPom.

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

解决

  • 一般是gradle插件版本过低引起的,升级gradle版本。

总结

  • 记录便于日后查阅
  • 分享出来,让遇到这种问题的其他同学提供一些帮助。

相关文章

网友评论

      本文标题:Could not find method developers

      本文链接:https://www.haomeiwen.com/subject/sieadltx.html