您的位置:首页 > 移动开发

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

2017-02-13 16:04 281 查看
升级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就可以了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: