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