我正在使用这些依赖项,因此更改了Places版本,因此它也向我显示错误,我也想使用Google Places 16.0.0版本。
我正在使用的依赖项
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'
我遇到错误:
错误:在项目“应用”中,已解析的Google Play服务库依赖项依赖于另一个版本(例如“ [11.0。 4]”,但尚未解决该版本。该库显示的行为将是未知的。
依赖项失败:com.google.firebase:firebase-iid:11.0.4-> com.google.android.gms:play-services-basement @ [11.0.4],b ut play-services-basement版本为16.0.1。
以下依赖项是直接的项目依赖项,或者具有导致该领域的传递性依赖项 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
有关扩展的调试信息,请从命令行使用./gradlew --info:app:assembleDebug执行Gradle以查看dep 文物的优先路径。此错误消息来自google-services Gradle插件,请在https://上报告问题 github.com/google/play-services-plugins并通过向您的b添加“ googleServices {disableVersionCheck = false}”来禁用 build.gradle文件。
答案 0 :(得分:1)
转到您的 app 文件夹并打开build.gradle
,
或platforms/android/app/build.gradle
用于phonegap应用的
将此添加到文件末尾:
googleServices.disableVersionCheck = true