升级完Android Studio 2.1.3 后编译时出现Error:No service of type Factory available in ProjectScopeServices.
![](https://i-blog.csdnimg.cn/blog_migrate/71d384ea2f1ca8b113f32ddd689e60f7.webp?x-image-process=image/format,png)
clean了下工程,发现好像是maven出了问题
![](https://i-blog.csdnimg.cn/blog_migrate/eddc96508423fc686b7a842dab84c5f6.webp?x-image-process=image/format,png)
于是把问题定位到根目录的build.gradle
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.3'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
}
}
google了下,发现有人提了Issue:
https://code.google.com/p/android/issues/detail?id=219692
直接将' classpath com.github.dcendents:android-maven-gradle-plugin:1.3'
更新到1.5就可以解决问题了。