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'