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

前端 未结 15 1561
清歌不尽
清歌不尽 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:25

    For me, it was a matter of adding version number to Google Play Services in project.properies file.

    So you need to change something like:

    android.library.reference.1=CordovaLib
    cordova.system.library.2=com.google.android.gms:play-services-auth:
    cordova.system.library.3=com.google.android.gms:play-services-identity:
    

    to:

    android.library.reference.1=CordovaLib
    cordova.system.library.2=com.google.android.gms:play-services-auth:11.
    cordova.system.library.3=com.google.android.gms:play-services-identity:11.
    

提交回复
热议问题