报错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
}
}
查询发现是由于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
}
}
重新编译,完美解决
相关文章推荐
- Error:(2, 0) No service of type Factory<LoggingManagerInternal> available in ProjectScopeServices. <
- Error:No service of type Factory<LoggingManagerInternal> available in ProjectScopeServices.
- Error:(2, 0) No service of type Factory <LoggingManagerInternal> available in ProjectScopeServices.
- Error:(2, 0) No service of type Factory<LoggingManagerInternal> available in ProjectScopeServices. <
- No service of type Factory<LoggingManagerInternal> available in ProjectScopeServices.
- No service of type Factory<LoggingManagerInternal> available in ProjectScopeServices.
- AndroidStudio总结:No service of type Factory<LoggingManagerInternal> available in ProjectScopeServices
- No service of type Factory<LoggingManagerInternal> available in ProjectScopeServices.
- No service of type Factory<LoggingManagerInternal> available in ProjectScopeService
- AndroidStudio 报错 Error:(2, 0) No service of type Factory<LoggingManagerInternal> available in Proje
- Error:No service of type Factory available in ProjectScopeServices.
- Android Studio出现Error:No service of type Factory available in ProjectScopeServices.
- Android Studio出现 No service of type Factory available in ProjectScopeServices. Error解决方案
- AndroidStudio导入Library或升级Gradle出现Error:No service of type Factory available in ProjectScopeServices.
- Android Studio出现Error:No service of type Factory available in ProjectScopeServices.
- Error:Noservice of type Factory available in ProjectScopeServices
- Error:No service of type Factory available in ProjectScopeServices.解决办法
- Android Studio出现Error:No service of type Factory available in ProjectScopeServices.
- Android Studio出现Error:No service of type Factory available in ProjectScopeServices.
- Android Studio出现Error:No service of type Factory available in ProjectScopeServices.