升级完Android Studio 2.1.3 后编译时出现Error:No service of type Factory available in ProjectScopeServices.
在导入xUtils3的时候,同步失败,显示错误是:
Error:No service of type Factory available in ProjectScopeServices.

点击错误详细:定位到build.gradle中的
由此可见,问题在Maven中,我们可以在项目的build.gradle中看到如下代码:
直接将红色部分' classpath com.github.dcendents:android-maven-gradle-plugin:1.3'更新到1.4.1就可以解决问题了,即:
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'
}}
apply plugin: 'com.github.dcendents.android-maven'
由此可见,问题在Maven中,我们可以在项目的build.gradle中看到如下代码:
直接将红色部分' classpath com.github.dcendents:android-maven-gradle-plugin:1.3'更新到1.4.1就可以解决问题了,即:
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
//1.自动化maven打包插件
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
//2.自动上传至Bintray平台插件classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'
}}