前言

看下这个完整的bug:

Caused by: org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin [id 'com.github.dcendents.android-maven']

然后吧左边的信息看完全:

Caused by: java.lang.IllegalArgumentException: Unable to determine constructor argument #1: missing parameter of type Factory, 
or no service of type Factory<LoggingManagerInternal>.

根据上述两个其实是告诉我们这个plugin无法加载。

解决

然后进入build.gradle进行查看这个plugin 发现classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'

这一行有一层蒙层,然后打开把鼠标放上去,显示我们的有效版本为2.1,然后try again吧。

相关文章:

  • 2021-07-17
  • 2021-12-12
  • 2022-01-13
  • 2021-07-12
  • 2022-01-26
  • 2021-12-12
  • 2021-07-01
  • 2021-11-17
猜你喜欢
  • 2021-09-05
  • 2022-02-02
  • 2022-01-18
  • 2021-08-25
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
相关资源
相似解决方案