nexmo 与 google 登录之间存在冲突
Conflict between nexmo and google sign in
我的应用级别 build.gradle
具有以下依赖项:
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
compile 'com.android.support:design:26.1.0'
compile 'com.squareup.retrofit2:retrofit:2.3.0'
compile 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation 'com.facebook.android:facebook-login:4.30.0'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.theartofdev.edmodo:android-image-cropper:2.6.0'
compile 'com.google.android.gms:play-services-auth:11.8.0'
compile 'de.hdodenhof:circleimageview:2.2.0'
compile 'com.nexmo:verify:4.0.0'
}
我遇到的问题是应用程序在我 运行 后崩溃。现在我明白了为什么它会崩溃,因为我在 compile 'com.google.android.gms:play-services-auth:11.8.0'
中有一条红色的卷曲线,上面写着类似 all gms/firebase must use the same exact version
的内容。
我运行./gradlew app:dependencies
。我认为导致问题的原因是 nexmo 使用 google firebase messaging 9.8.0,我们从 google 登录,即 11.8.0。所以我评论了 Nexmo 依赖项,果然 google auth 依赖项中的红色卷曲线消失了。但我需要 nexmo 验证。
我也尝试将 google auth 依赖版本更改为 9.8.0 以查看是否有效,但似乎 Google 登录的所有 类 都不可用。
nexmo library 似乎使用了非常旧的依赖项(最后一次提交是 1 年前)
加入你的build.gradle
compile 'com.google.firebase:firebase-messaging:11.8.0'
我的应用级别 build.gradle
具有以下依赖项:
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
compile 'com.android.support:design:26.1.0'
compile 'com.squareup.retrofit2:retrofit:2.3.0'
compile 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation 'com.facebook.android:facebook-login:4.30.0'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.theartofdev.edmodo:android-image-cropper:2.6.0'
compile 'com.google.android.gms:play-services-auth:11.8.0'
compile 'de.hdodenhof:circleimageview:2.2.0'
compile 'com.nexmo:verify:4.0.0'
}
我遇到的问题是应用程序在我 运行 后崩溃。现在我明白了为什么它会崩溃,因为我在 compile 'com.google.android.gms:play-services-auth:11.8.0'
中有一条红色的卷曲线,上面写着类似 all gms/firebase must use the same exact version
的内容。
我运行./gradlew app:dependencies
。我认为导致问题的原因是 nexmo 使用 google firebase messaging 9.8.0,我们从 google 登录,即 11.8.0。所以我评论了 Nexmo 依赖项,果然 google auth 依赖项中的红色卷曲线消失了。但我需要 nexmo 验证。
我也尝试将 google auth 依赖版本更改为 9.8.0 以查看是否有效,但似乎 Google 登录的所有 类 都不可用。
nexmo library 似乎使用了非常旧的依赖项(最后一次提交是 1 年前)
加入你的build.gradle
compile 'com.google.firebase:firebase-messaging:11.8.0'