简体   繁体   English

错误:在项目“应用程序”中,已解决的 Google Play 服务库依赖项依赖于另一个确切版本(例如“[11.0.4]”)

[英]Error:In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. “[11.0.4]”)

I am Using these dependencies, I changed my places version so It shows me error also I wanted to use google places 16.0.0 version.我正在使用这些依赖项,我更改了我的位置版本,所以它也显示错误我想使用谷歌位置 16.0.0 版本。

Dependencies I am using我正在使用的依赖项

dependencies {
    implementation 'com.facebook.android:facebook-android-sdk:4.39.0'
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    //noinspection GradleCompatible
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support:design:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.2'
    implementation 'com.android.support:cardview-v7:28.0.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    implementation 'com.android.volley:volley:1.1.1'
    implementation 'com.google.code.gson:gson:2.7'
    implementation 'com.googlecode.android-query:android-query:0.25.9'
    //noinspection GradleCompatible
    implementation 'com.google.android.gms:play-services-places:16.0.0'
    implementation 'com.google.android.gms:play-services-location:11.0.4'
    implementation 'com.google.android.gms:play-services-maps:11.0.4'
    implementation 'com.google.maps.android:android-maps-utils:0.5+'
    implementation 'com.google.firebase:firebase-auth:11.0.4'
    implementation 'com.google.firebase:firebase-core:11.0.4'
    implementation 'com.google.firebase:firebase-messaging:11.0.4'
    implementation 'com.google.firebase:firebase-storage:11.0.4'
    implementation 'com.google.firebase:firebase-database:11.0.4'
    implementation 'com.google.android.gms:play-services-ads:11.0.4'
    implementation 'com.google.android.gms:play-services-analytics:11.0.4'

Error I am getting:我得到的错误:

Error:In project 'app' a resolved Google Play services library dependency depends on another at an exact version (eg "[11.0. 4]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.错误:在项目“应用程序”中,已解析的 Google Play 服务库依赖项依赖于另一个确切版本(例如“[11.0.4]”,但未解析为该版本。库表现出的行为未知。

Dependency failing: com.google.firebase:firebase-iid:11.0.4 -> com.google.android.gms:play-services-basement@[11.0.4], b ut play-services-basement version was 16.0.1. Dependency failing: com.google.firebase:firebase-iid:11.0.4 -> com.google.android.gms:play-services-basement@[11.0.4], b ut play-services-basement version was 16.0.1 .

The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art ifact with the issue.以下依赖项是直接的或具有传递依赖项的项目依赖项,这些依赖项会导致存在问题的艺术 ifact。

-- Project 'app' depends onto com.google.android.gms:play-services-ads@11.0.4
-- Project 'app' depends onto com.google.firebase:firebase-messaging@11.0.4
-- Project 'app' depends onto com.google.firebase:firebase-core@11.0.4
-- Project 'app' depends onto com.google.firebase:firebase-database@11.0.4
-- Project 'app' depends onto com.google.firebase:firebase-auth@11.0.4
-- Project 'app' depends onto com.google.firebase:firebase-storage@11.0.4
-- Project 'app' depends onto com.google.android.gms:play-services-analytics@11.0.4
-- Project 'app' depends onto com.google.android.gms:play-services-places@16.0.0
-- Project 'app' depends onto com.google.android.gms:play-services-location@11.0.4
-- Project 'app' depends onto com.google.android.gms:play-services-maps@11.0.4

For extended debugging info execute Gradle from the command line with./gradlew --info:app:assembleDebug to see the dep endency paths to the artifact.如需扩展调试信息,请使用 ./gradlew --info:app:assembleDebug 从命令行执行 Gradle 以查看工件的依赖路径。 This error message came from the google-services Gradle plugin, report issues at https:// github.com/google/play-services-plugins and disable by adding "googleServices { disableVersionCheck = false }" to your b build.gradle file. This error message came from the google-services Gradle plugin, report issues at https:// github.com/google/play-services-plugins and disable by adding "googleServices { disableVersionCheck = false }" to your b build.gradle file.

Go to your app folder and open build.gradle , Go 到您的应用程序文件夹并打开build.gradle

or platforms/android/app/build.gradle for phonegap app'splatforms/android/app/build.gradle用于 phonegap 应用程序

add this to end of file:将此添加到文件末尾:

googleServices.disableVersionCheck = true

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在项目“应用程序”中,已解决的 Google Play 服务库依赖项依赖于另一个确切版本(例如“[16.0 - In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[16.0 在项目“应用”中,已解析的Google Play服务库依赖项依赖于另一个版本(例如“ [11.0。4]”) - In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. “[11.0. 4]” 在项目“app”中,已解决的 Google Play 服务库依赖项依赖于另一个确切版本(例如“[1.3.1 ,2.3]”, - In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[1.3.1 ,2.3]", 错误:在项目“应用程序”中,已解决的 Google Play 服务库依赖项依赖于另一个准确版本 - error: In project 'app' a resolved Google Play services library dependency depends on another at an exact version 错误:在项目“应用程序”中,在集成 onesignal 时,已解决的 Google Play 服务库依赖项依赖于另一个准确版本 - ERROR: In project 'app' a resolved Google Play services library dependency depends on another at an exact version while iintegrating onesignal android 项目...“应用程序”中已解决的 Google Play 服务库依赖项依赖于另一个确切版本 - android project in ... 'app' a resolved Google Play services library dependency depends on another at an exact version 在项目“应用程序”中,已解决的 Google Play 服务库依赖项依赖于另一个确切版本 - In project 'app' a resolved Google Play services library dependency depends on another at an exact version 错误:在项目“应用”中,已解析的Google Play服务库依赖项依赖于另一个版本 - ERROR: In project 'app' a resolved Google Play services library dependency depends on another at an exact versionn Android:错误:已解决的Google Play服务库依赖项依赖于另一个版本 - Android: ERROR: A resolved Google Play services library dependency depends on another at an exact version 依赖失败:Google Play 服务库依赖依赖于另一个确切版本但未解析为该版本 - Dependency failing: Google Play services library dependency depends on another at an exact version but isn't being resolved to that version
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM