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的
网上找到一些资料,然后又去查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就可以了
相关文章推荐
- Android 资源下载地址
- 安卓AS修改包名和包名结构
- AndroidN SurfaceComposerClient 时序图
- Android RecyclerView上拉加载更多功能回弹实现代码
- 使用adb+gdb调试android native代码
- Android TouchListener实现拖拽删实例代码
- Unity结合C++开发服务器实现多人游戏(一)
- Android Studio导入第三方jar包
- Android M Permission 运行时权限
- Android Binder设计与实现 - 设计篇
- PHP在线支付类集锦(银联支付宝手机支付宝微信等)
- Android中跨进程通信的四种方式
- Android Studio 中配置和使用NDK
- Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null objec
- android开发:创建动态drawable
- Android与HTML+JS的交互
- Android输入系统(二)
- ArrayMap的使用与详解
- iOS之获取照片和相机、定位权限的判断
- iOS应用上传个人头像