Android Studio出现Error:No service of type Factory available in ProjectScopeServices.

来源:互联网 发布:淘宝买家恶意拍下单 编辑:程序博客网 时间:2024/05/17 08:52


    

升级完Android Studio 2.1.3 后编译时出现Error:No service of type Factory available in ProjectScopeServices.

clean了下工程,发现好像是maven出了问题

于是把问题定位到根目录的build.gradle

buildscript {    repositories {        jcenter()    }    dependencies {        classpath 'com.android.tools.build:gradle:2.1.3'        classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'        classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'    }}

直接将' classpath com.github.dcendents:android-maven-gradle-plugin:1.3'更新到1.4.1就可以解决问题了。



阅读全文
0 0
原创粉丝点击