代码之家  ›  专栏  ›  技术社区  ›  ravi

nexmo与google登录冲突

  •  0
  • ravi  · 技术社区  · 8 年前

    我的应用程序级别 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依赖项中的红色卷曲线消失了。但我需要下一次验证。 我还尝试将google auth dependency版本更改为9.8.0,看看是否可行,但似乎google登录的所有类都不可用。

    1 回复  |  直到 8 年前
        1
  •  0
  •   Gabriele Mariotti    8 年前

    这个 nexmo library 似乎使用了非常旧的依赖项(上次提交是1年前)

    添加您的 build.gradle

    compile 'com.google.firebase:firebase-messaging:11.8.0'