我的应用级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正在使用谷歌firebase消息9.8.0,我们从谷歌登录11.8.0。所以我评论了Nexmo的依赖性,果然,google auth依赖中的红色卷曲线也消失了。但我需要nexmo验证。
我还尝试将google auth依赖版本更改为9.8.0以查看是否有效,但似乎Google登录的所有类都不可用。
答案 0 :(得分:0)
nexmo library似乎使用非常旧的依赖项(最后一次提交是1年前)
添加build.gradle
compile 'com.google.firebase:firebase-messaging:11.8.0'