Could not find method developers() for arguments

异常信息

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

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() for arguments)