The library com.google.android.gms:play-services-base is being requested by various other libraries

编程入门 行业动态 更新时间:2024-10-24 06:27:28

错误信息:

......

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

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle

......

解决办法:

修改文件app\platforms\android\project.properties,

将com.google.android.gms插件的版本改为一样的,例如都改为:+,

如下所示:

# This file was originally created by the Android Tools, but is now
# used by cordova-android to manage the state of the various third party
# libraries used in your application

# This is the Library Module that contains the Cordova Library, this is not
# required when using an AAR

# This is the application project.  This is only required for Android Studio Gradle projects

# Project target.
target=android-27
android.library.reference.1=CordovaLib
android.library.reference.2=app
cordova.gradle.include.1=com-sarriaroman-photoviewer/light-photoviewer.gradle
cordova.system.library.1=com.squareup.okhttp3:okhttp-urlconnection:3.10.0
cordova.system.library.2=com.android.support:support-v4:24.1.1+
cordova.system.library.3=com.android.support:support-v4:24.1.1+
cordova.gradle.include.2=cordova-plugin-firebase/light-build.gradle
cordova.system.library.4=com.google.android.gms:play-services-tagmanager:+
cordova.system.library.5=com.google.firebase:firebase-core:+
cordova.system.library.6=com.google.firebase:firebase-messaging:+
cordova.system.library.7=com.google.firebase:firebase-config:+
cordova.system.library.8=com.google.firebase:firebase-perf:+
cordova.system.library.9=com.google.android.gms:play-services-analytics:+
cordova.gradle.include.3=cordova-plugin-googlemaps/light-tbxml-android.gradle
cordova.system.library.10=com.google.android.gms:play-services-maps:+
cordova.system.library.11=com.google.android.gms:play-services-location:+
cordova.system.library.12=com.android.support:support-core-utils:27.+
cordova.system.library.13=com.android.support:support-annotations:27.+
cordova.system.library.14=com.android.support:support-v4:24.1.1+

更多推荐

The library com.google.android.gms:play-services-base is being requested by vari

本文发布于:2023-06-14 09:20:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1459997.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:android   gms   library   google   play

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!