Error: more than one library with package name com.google.android.gms.license

前端 未结 15 1546
清歌不尽
清歌不尽 2020-12-09 15:59

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

15条回答
  •  一生所求
    2020-12-09 16:11

    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.+
    

提交回复
热议问题