[英]How to resolve dependency problem with version conflicts?
I am using this version implementation com.google.android.gms:play-services:10.2.0
, but I need to use this com.google.android.gms:play-services-location:15.0.1
or above.我正在使用这个版本implementation com.google.android.gms:play-services:10.2.0
,但我需要使用这个com.google.android.gms:play-services-location:15.0.1
或更高版本。
Every time I build, it says all dependencies either should be above or below 14.0.0 .每次我构建时,它都会说所有依赖项都应该高于或低于14.0.0 。 But no version of play-services is available higher than this version 10.2.0 (Not in my knowledge).但是没有高于此版本 10.2.0 的播放服务版本(据我所知)。
And is there any way that I can simply remove this Google play service dependency without getting any error.有什么方法可以简单地删除此 Google Play 服务依赖项而不会出现任何错误。 Because every time I remove it and build it gives this error (see the attached picture).因为每次我删除它并构建它时都会出现此错误(见附图)。
in app.gradle :在 app.gradle 中:
dependencies {
implementation 'com.google.android.gms:play-services-location:16.0.0'
}
apply plugin: 'com.google.gms.google-services'
in project gradle:在项目gradle中:
dependencies {
classpath 'com.google.gms:google-services:4.2.0'
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.