Android Studio 升级 2.2 Maven 插件不能使用的问题

来源:互联网 发布:linux 写文件指令 编辑:程序博客网 时间:2024/06/05 20:55

Android Studio 升级 2.2 Maven 插件不能使用的问题

AS 升级到到 2.2 后,发现 Maven 插件不能使用,报如下错误

No service of type Factory<LoggingManagerInternal> available in ProjectScopeServices.

点击 Open File 后定位到

apply plugin: 'com.github.dcendents.android-maven'

解决方法

到 Project 的 build.gradle 中 dependencies 升级 maven gradle plugin 版本

classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
0 0