同步错误:com.google.android.gms:play-services-base:17.2.0
当我同步我的项目时,我遇到了这个错误,我在网上搜索过,但没有得到任何能让我继续前进的结果 错误 下面是我的依赖项同步错误:com.google.android.gms:play-services-base:17.2.0,android,android-gradle-plugin,google-play-services,Android,Android Gradle Plugin,Google Play Services,当我同步我的项目时,我遇到了这个错误,我在网上搜索过,但没有得到任何能让我继续前进的结果 错误 下面是我的依赖项 buildscript { repositories { mavenCentral() google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.5.0' } } depend
buildscript {
repositories {
mavenCentral()
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
}
}
dependencies {
implementation fileTree(dir: 'libs', include: '*.jar')
// SUB-PROJECT DEPENDENCIES START
implementation(project(path: ":CordovaLib"))
implementation 'com.android.support:support-annotations:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:support-v13:28.0.0'
implementation 'me.leolin:ShortcutBadger:1.1.22@aar'
implementation 'com.google.firebase:firebase-core:17.2.0'
implementation 'com.google.firebase:firebase-messaging:20.0.0'
implementation 'com.google.android.gms:play-services-base:17.2.0'
implementation 'com.google.android.gms:play-services-ads:18.2.0'
// SUB-PROJECT DEPENDENCIES END
}
有关如何使其同步的任何解决方案?依赖项:
implementation 'com.google.android.gms:play-services-base:17.2.0'
(当前)不存在
使用17.1.0
或17.0.0
是最新可用版本的列表。您还可以检查页面中的历史记录。依赖项:
implementation 'com.google.android.gms:play-services-base:17.2.0'
(当前)不存在
使用17.1.0
或17.0.0
是最新可用版本的列表。您也可以检查页面中的历史记录。当我更改17.10或17.0.0时,我会遇到以下错误:请通过更新google services插件的版本(有关最新版本的信息,请访问)或将com.google.android.gms的版本更新为17.2.0.Hi@neiza来修复版本冲突。这是另一个问题。这与你的问题无关。你不妨考虑问一个单独的问题。另外请注意,因为您的某些依赖项(如ads-18.2.0)需要androidx迁移。当我更改17.10或17.0.0时,我会遇到以下错误:请通过更新google services插件的版本来修复版本冲突(有关最新版本的信息,请访问)或者将com.google.android.gms的版本更新为17.2.0.Hi@neiza。这是另一个问题。这与你的问题无关。你不妨考虑问一个单独的问题。还要注意,因为您的一些依赖项(如ads-18.2.0)需要androidx迁移。