No service of type Factory available in ProjectScopeServices apply plugin: 'com.github.dcendents.an

来源:互联网 发布:dnf经常网络中断2017 编辑:程序博客网 时间:2024/04/29 09:19
升级android studio2.2.3之后,发现以前好好的项目报错了,No service of type Factory available in ProjectScopeServices 

网上找到一些资料,然后又去查https://github.com/dcendents/android-maven-gradle-plugin主页,发现是因为as的gradle版本不匹配导致的。



在工程的build.gradle的
dependencies {    classpath 'com.android.tools.build:gradle:2.2.3'    classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'}
将1.5修改为你as的Gradle Version对应的Plugin Version就可以了
0 0
原创粉丝点击