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

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

    Things i had to do to get the build to succeed on my Ionic3 App:

    • Add Plugin cordova-android-play-services-gradle-release
    • Remove and re-add the android platform
    • 11.+ in platform/android/project.properties file for libraries ( Especially if you're using firebase )
    • 11.+ for dependencies in platforms/android/cordova-plugin-firebase/-build.gradle
    • The above changes in platforms/android/build.gradle

    This might be the worst possible way to get things work, but kinda saved my life. Hope this helps someone!

提交回复
热议问题