首页 > 系统 > Android > 正文

Android studio 升级2.2 之后 Maven插件不能使用解决

2019-11-08 00:03:38
字体:
来源:转载
供稿:网友

compile报下面的错误

Error:(2, 0) No service of type Factory<LoggingManagerInternal> available in PRojectScopeServices.11

点击open file 会跳转到apply plugin: 'com.github.dcendents.Android-maven'这行。 解决方案更新maven-plugin的依赖 classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5' 

到jcenter查看最新版本android-maven-gradle

在项目的build.gradle文件中将

dependencies {    classpath 'com.android.tools.build:gradle:2.1.0'    classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4'    classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'//改成1.5    classpath 'com.jakewharton:butterknife-gradle-plugin:8.2.1'    // NOTE: Do not place your application dependencies here; they belong    // in the individual module build.gradle files    classpath 'com.antfortune.freeline:gradle:0.8.4'}


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表