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

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

    I was facing the same error in my ionic project, after little search I have read about to upgrade the Android platform which is required for latest Android Gradle Plugin in order to build the app.

    The solution to is very easy just follow the below mentioned step.

    1. Remove your existing Anroid platform

    ionic cordova platform remove android

    1. Add minimum version Android SDK Build Tools 26.0.2 through Android SDK Manager to use latest Android Gradle Plugin in order to build the app

    2. Add minimum version for Android platform

    ionic cordova platform add android@^6.4.0

提交回复
热议问题