菜单 学习猿地 - LMONKEY

VIP

开通学习猿地VIP

尊享10项VIP特权 持续新增

知识通关挑战

打卡带练!告别无效练习

接私单赚外块

VIP优先接,累计金额超百万

学习猿地私房课免费学

大厂实战课仅对VIP开放

你的一对一导师

每月可免费咨询大牛30次

领取更多软件工程师实用特权

入驻
387
0

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

原创
05/13 14:22
阅读数 98904

前言

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

发表评论

0/200
387 点赞
0 评论
收藏
为你推荐 换一批