您的位置:首页 > 大数据 > 人工智能

报错Error:(2, 0) No service of type Factory<LoggingManagerInternal> available in ProjectScopeServices

2017-04-18 09:35 453 查看
今天在导入library包时报了这样的错误Error:(2, 0) No service of type Factory<LoggingManagerInternal> available in ProjectScopeServices
查询发现是由于android studio版本原因,2.2版本Maven插件无法使用,我电脑上装了两个版本的as,一个是2.1,一个是2.2,只有2.2的报错。
解决方法使用最新的maven-plugin,在项目的build.gradle里面可以升级为classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
重新编译,完美解决
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐