studio编译报错:No service of type Factory available in ProjectScopeServices.

来源:互联网 发布:百慕大三角知乎 编辑:程序博客网 时间:2024/05/24 02:48
buildscript {    repositories {        jcenter()    }    dependencies {        classpath 'com.android.tools.build:gradle:2.3.0'        classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'        classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'        // NOTE: Do not place your application dependencies here; they belong        // in the individual module build.gradle files    }}
从github上有个导入的项目,编译时直接挂掉,报错:No service of type Factory available in ProjectScopeServices.
将根目录的build.gradle内上面的内容的maven-gradle 1.3修改成1.4重新编译即可,做个记录。
阅读全文
0 0
原创粉丝点击