我的错误:
:应用程序:PREREALEASEBUILD失败
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.
我重新安装了NPM和Cordova插件,用于Firebase,我删除了节点模块,插件,除了问题以外的所有内容仍然存在,无法构建项目。
有什么想法?
这解决了我的问题:
- 在您的项目文件夹中执行 CORDOVA插件添加https://github.com/dpa99c/cordova-plugin-firebase#gh-1057-april-05-april-05-android-android-build-build-issue-/sissue-/strong>>
- 离子Cordova平台RM Android
- 离子Cordova平台添加Android。
您可以在这里找到解决方案:https://github.com/arnesson/cordova-plugin-firebase/pull/1058
对于离子,请转到projects.gardle和更改cordova.system.library.8=com.google.firebase:firebase-messaging:17.0.+ to (17.5.0)