我尝试将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.
构建文件(模块:app) //
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生成工具
那么有人可以建议我如何解决这个问题
答案 0 :(得分:3)
禁用Google Play服务版本是一种可能的解决方案。在您的 app.gradle
中element host
答案 1 :(得分:3)
建议禁用Google Play服务版本检查的other answer已过时。请将com.google.gms:google-services
更新为版本4.3.3
+。
答案 2 :(得分:0)
您可以使用以下代码:
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
android/app/build.gradle
末