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吧。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM