导入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的包

 

相关文章:

  • 2021-12-18
  • 2021-11-14
  • 2022-12-23
  • 2021-10-20
  • 2022-12-23
  • 2021-09-29
  • 2022-01-20
  • 2022-01-20
猜你喜欢
  • 2021-10-18
  • 2021-07-16
  • 2021-08-28
  • 2021-09-07
  • 2022-12-23
  • 2021-06-18
相关资源
相似解决方案