android– 基于离子的play-services-measurement-problem的问题

android– 基于离子的play-services-measurement-problem的问题,第1张

概述我对离子项目有一个问题,它昨天开始发生而没有修改任何依赖.当我运行离子cordova运行android我有这个错误:Thelibrarycom.google.android.gms:play-services-measurement-baseisbeingrequestedbyvariousotherlibrariesat[[16.5.0,16.5.0],[16.4.0,16.4.0]],butreso

我对离子项目有一个问题,它昨天开始发生而没有修改任何依赖.

当我运行离子cordova运行android我有这个错误:

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.

但是这些天我没有安装任何依赖.

这是我的cordova插件列表:

cordova-fabric-plugin 1.1.14-dev "cordova-fabric-plugin"cordova-plugin-advanced-http 2.0.9 "Advanced http plugin"cordova-plugin-app-version 0.1.9 "AppVersion"cordova-plugin-appminimize 1.0.1 "AppMinimize"cordova-plugin-apprate 1.4.0 "AppRate"cordova-plugin-appsee 2.6.0 "Appsee"cordova-plugin-badge 0.8.8 "Badge"cordova-plugin-datepicker 0.9.3 "DatePicker"cordova-plugin-device 2.0.2 "Device"cordova-plugin-dialogs 2.0.1 "Notification"cordova-plugin-facebook4 3.2.0 "Facebook Connect"cordova-plugin-file 6.0.1 "file"cordova-plugin-firebase 2.0.5 "Google Firebase Plugin"cordova-plugin-freshchat 1.2.0 "Freshchat plugin for Phonegap"cordova-plugin-geolocation 4.0.1 "Geolocation"cordova-plugin-globalization 1.11.0 "Globalization"cordova-plugin-inappbrowser 3.0.0 "InAppbrowser"cordova-plugin-inapppurchase-fixed 1.1.0 "In App Purchase"cordova-plugin-insomnia 4.3.0 "Insomnia (prevent screen sleep)"cordova-plugin-local-notification 0.9.0-beta.2 "localnotification"cordova-plugin-media 5.0.2 "Media"cordova-plugin-nativegeocoder 3.2.2 "NativeGeocoder"cordova-plugin-nativestorage 2.3.2 "NativeStorage"cordova-plugin-network-information 2.0.1 "Network information"cordova-plugin-splashscreen 5.0.2 "Splashscreen"cordova-plugin-statusbar 2.4.2 "Statusbar"cordova-plugin-whiteList 1.3.3 "WhiteList"cordova-plugin-x-socialsharing 5.4.4 "SocialSharing"cordova-support-Google-services 1.2.1 "cordova-support-Google-services"es6-promise-plugin 4.2.2 "Promise"ionic-plugin-deeplinks 1.0.19 "Ionic Deeplink Plugin"nl.kingsquare.cordova.background-audio 1.0.1 "background-audio"pushwoosh-cordova-plugin 7.13.0 "Pushwoosh"

我在我的平台/ androID / app / build.gradle中找到了这些依赖项(如果知道的话):

dependencIEs {    implementation filetree(dir: 'libs', include: '*.jar')    // SUB-PROJECT DEPENDENCIES START    implementation(project(path: ":Cordovalib"))    compile "com.androID.support:support-v4:24.1.1+"    compile "com.squareup.okhttp3:okhttp-urlconnection:3.10.0"    compile "com.Google.androID.gms:play-services-tagmanager:+"    compile "com.Google.firebase:firebase-core:+"    compile "com.Google.firebase:firebase-messaging:+"    compile "com.Google.firebase:firebase-config:+"    compile "com.Google.firebase:firebase-perf:+"    compile "com.androID.support:support-v4:26.+"    compile "com.androID.support:support-v4:27.+"    compile "com.androID.support:appcompat-v7:27.+"    compile "com.androID.support:recyclervIEw-v7:27.+"    compile "com.androID.support:design:27.+"    compile "com.androID.support.constraint:constraint-layout:1.0.2"    compile "com.github.bumptech.glIDe:glIDe:4.7.1"    compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:1.1.60"    compile "com.pushwoosh:pushwoosh:5.13.0"    compile "com.pushwoosh:pushwoosh-amazon:5.13.0"    compile "com.pushwoosh:pushwoosh-badge:5.13.0"    compile "com.pushwoosh:pushwoosh-inBox:5.13.0"    compile "com.pushwoosh:pushwoosh-inBox-ui:5.13.0"    compile "com.facebook.androID:facebook-android-sdk:4.38.1"    compile "com.appsee:appsee-androID:2.6.0"    // SUB-PROJECT DEPENDENCIES END}

我不知道在哪里搜索.我找到了一个解决方法,即在平台/ androID / build.gradle中禁用GoogleServicesPlugin的版本检查:com.Google.gms.Googleservices.GoogleServicesPlugin.config.disabLeversionCheck = true但它对我不起作用.

提前致谢.

编辑:好像我不是唯一一个. Here.

解决方法:

这里没有发布解决方案对我有用.一个出色的人在cordova-firebase-plugin官方回购中开了一个pull request,它有效.

我做的步骤:

1 – 使用离子cordova插件删除cordova-firebase-plugin删除cordova-plugin-firebase

2 – 安装:ionic cordova插件添加https://github.com/dpa99c/cordova-plugin-firebase#GH-1057-April-05-androID-build-issue

3 – rm -rf node_modules / plugins / platforms / androID package-lock.Json

4 – 离子cordova平台添加androID&& npm安装

5 – 在我的情况下,我也使用旧版本的firebase Js库,因为最新的库不适用于我.使用该库我总是需要在完成前面的所有步骤后手动重新安装它,所以我也这样做了:npm install [email protected].

现在它正在发挥作用.

总结

以上是内存溢出为你收集整理的android – 基于离子的play-services-measurement-problem的问题全部内容,希望文章能够帮你解决android – 基于离子的play-services-measurement-problem的问题所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1102666.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-28
下一篇 2022-05-28

发表评论

登录后才能评论

评论列表(0条)

保存