android - 在项目 'app' 中,已解决的 Google Play 服务库依赖项依赖于另一个确切版本(例如 "[1.3.1 ,2.3]",

标签 android build azure-devops single-sign-on android-manifest

我尝试将 SSO 添加到我的项目中我引用了此链接 sso

在build.gradle(Module:app)中添加这一行之后

//Microsoft
implementation 'com.microsoft.identity.client:msal:0.2.+'

出现以下错误

   In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[1.3.1
,2.3]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.

Dependency failing: com.nimbusds:nimbus-jose-jwt:5.7 -> net.minidev:json-smart@[1.3.1,2.3], but json-smart version was 2
.3.

The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art
ifact with the issue.
-- Project 'app' depends onto com.microsoft.identity.client:msal@0.2.+
-- Project 'app' depends onto net.minidev:json-smart@{strictly 2.3}
-- Project 'app' depends onto com.nimbusds:nimbus-jose-jwt@{strictly 5.7}
-- Project 'app' depends onto com.microsoft.identity.client:msal@{strictly 0.2.2}
-- Project 'app' depends onto com.microsoft.identity:common@{strictly 0.0.8}

For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep
endency paths to the artifact. This error message came from the google-services Gradle plugin, report issues at https://
github.com/google/play-services-plugins and disable by adding "googleServices { disableVersionCheck = false }" to your b
uild.gradle file.

构建文件(模块:应用程序) //

FireBase
    implementation 'com.google.firebase:firebase-core:15.0.2'
    implementation 'com.google.firebase:firebase-messaging:17.6.0'
    implementation'com.google.firebase:firebase-auth:16.1.0'


    // GMS:play-services
        implementation 'com.google.android.gms:play-services-flags:16.0.1'
        implementation 'com.google.android.gms:play-services-basement:16.0.1'
        //Constrain layout
        implementation 'androidx.constraintlayout:constraintlayout:1.1.3'

        //Microsoft 
        implementation 'com.microsoft.identity.client:msal:0.2.+'

有人可以建议我如何解决这个问题吗 我也试过以下事情

我试过以下的东西 1 更新了 SDK 管理器中的 google play 服务 2 更新SDK管理器中的SDK构建工具

有人可以建议我如何解决这个问题

最佳答案

other answer这表明禁用 Google Play 服务的版本检查已过时。请将 com.google.gms:google-services 更新到 4.3.3+ 版本。

关于android - 在项目 'app' 中,已解决的 Google Play 服务库依赖项依赖于另一个确切版本(例如 "[1.3.1 ,2.3]",,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56563818/

相关文章:

java - 使用 Sphinx 4 语音识别平台效果不佳

Android Lint 内容描述警告

android:关闭游标后是否需要关闭Db

meteor - 在docker中构建meteor应用程序时出现"You have run Meteor as root"

azure-devops - Azure DevOps 如何通过 REST API 编辑 Wiki 页面

android - 跨移动应用程序的最佳方式

c# - 在 csproj 文件中构建配置

java - 如何导入java项目(Eclipse)

azure - Visual Studio Team Services 构建失败 - 数据库项目到 Azure SQL

git - 如何从 Azure Devops 中的特定分支构建?