When I try to run the command ionic cordova build android
out error as title above. Then I try to remove one of the gms
, when I build again the del
Maybe it related to new release of Google Play services 12.0.0(released at March 20, 2018)
I've resolved it fixing dependencies:
Add config in android/build.gradle
allprojects {
repositories {
...
configurations.all {
resolutionStrategy {
// Add force (11.0.0 is version you want to use)
force 'com.google.firebase:firebase-core:11.0.0'
force 'com.google.firebase:firebase-crash:11.0.0'
force 'com.google.firebase:firebase-analytics:11.0.0'
force 'com.google.firebase:firebase-messaging:11.0.0'
force 'com.google.android.gms:play-services-base:11.0.0'
force 'com.google.android.gms:play-services-maps:11.0.0'
force 'com.google.android.gms:play-services-wallet:11.0.0'
}
}
}
}
Set of dependencies are from your android/app/build.gradle