Ionic Android Build - com.google.android.gms:play-services-measurement-base Error

吃可爱长大的小学妹 提交于 2020-01-06 08:45:08

问题


My error:

:app:preReleaseBuild FAILED

FAILURE: Build failed with an exception.

* What went wrong:
The library com.google.android.gms:play-services-measurement-base is being
requested by various other libraries at [[16.5.0,16.5.0], [16.4.0,16.4.0]], 
but resolves to 16.5.0. Disable the plugin and check your dependencies tree
using ./gradlew :app:dependencies.

I reinstalled the npm and cordova plugins for Firebase, I deleted the node-modules, the plugins and everything but the issue is still there and can't build the project.

Any thoughts?


回答1:


This resolved my problem:

  1. In your project folder execute cordova plugin add https://github.com/dpa99c/cordova-plugin-firebase#GH-1057-April-05-android-build-issue
  2. ionic cordova platform rm android
  3. ionic cordova platform add android.

You can find the solution here: https://github.com/arnesson/cordova-plugin-firebase/pull/1058



来源:https://stackoverflow.com/questions/56024408/ionic-android-build-com-google-android-gmsplay-services-measurement-base-erro

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!