I'm getting the error "The library com.google.android.gms:play-services-measurement-base is being requested by various other libraries at [[16.5.0,16.5.0], [16.4.0,16.4.0]], but resolves to 16.5.0. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies."

I tried updating all the dependencies to the latest versions and re-sync the project

compile "com.google.android.gms:play-services-location:16.0.0"
compile "com.android.support:support-v4:28.0.0"
compile "com.android.support:appcompat-v7:28.0.0"
compile "com.facebook.android:facebook-android-sdk:5.0.0"
compile "com.google.android.gms:play-services-tagmanager:16.0.8"
compile "com.google.firebase:firebase-core:16.0.9"
compile "com.google.firebase:firebase-messaging:18.0.0"
compile "com.google.firebase:firebase-config:17.0.0"
compile "com.google.firebase:firebase-perf:17.0.0"
compile "com.google.android.gms:play-services-maps:16.1.0"
compile "com.android.support:support-core-utils:28.0.0"

I expect the project to build successfully but i keep getting the same error.

Update

i was able to fix this issue by updating firebase plugins in the project.properties file under android folder of my ionic project.

cordova.system.library.10=com.google.firebase:firebase-core:16.0.8
cordova.system.library.11=com.google.firebase:firebase-messaging:17.5.0
cordova.system.library.12=com.google.firebase:firebase-config:16.4.1
cordova.system.library.13=com.google.firebase:firebase-perf:16.2.4

0 Answers