No service of type Factory<LoggingManagerInternal> available in ProjectScopeService

导入GitHub上下载的项目时报错

No service of type Factory<LoggingManagerInternal> available in ProjectScopeService

网上大部分说将

classpath 'com.github.dcendents:android-maven-plugin:1.3'


版本升高到1.4.1或以上即可,尝试无效,其实同时要将android-maven-plugin改为android-maven-gradle-plugin

classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'

 


fix后出现错误Failed resolution of: Lcom/google/android/gms/common/api/Api$ClientKey;       (我导入了一个Google地图的demo)

此时只需将你的play-services相关jar包版本升高,比如

compile "com.google.android.gms:play-services-location:7.5.0"

升级为

compile "com.google.android.gms:play-services-location:8.4.0"

就行了

 

emm,但是有个问题是,一旦版本超过7后就会找不到com.google.android.gms.location.places的包

 

posted @ 2018-10-13 10:29  Sharley  阅读(911)  评论(0编辑  收藏  举报