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
UPDATE
The cause of this error has been identified as a bug in v12.0.0 of the Google Play Services library:
Known Issues with version 12.0.0 -license POM dependencies cause "more than one library with package name ‘com.google.android.gms.license'" issues in Ionic Pro.
The bug has been fixed in v12.0.1 of the Google Play Services library:
Restores unique package names for runtime linked -license artifacts which affected some build systems' (e.g. Ionic Pro) compatibility issues.
Therefore specifying v12.0.1 or above of the Play Services Library via the cordova-android-play-services-gradle-release plugin resolves the issue, for example:
cordova plugin add cordova-android-play-services-gradle-release --variable PLAY_SERVICES_VERSION=12.+