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重新编译即可,做个记录。