微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Caused by: org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin[id:xxx.xxx.xxx]

前言

看下这个完整的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吧。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐