Error:Failed to resolve: com.google.android.gms:play-services-auth-api-phone:10.2.5

心不动则不痛 提交于 2020-01-17 14:17:11

问题


I am using Twilio for SMS verification for my Android app, but when I add the repository of Twilio verification dependency(compile 'com.twilio: verification:+') the Gradle can not be built and shows the following error: Error:Failed to resolve: com.google.android.gms:play-services-auth-api-phone:10.2.5 can anyone help me!

and I installed and update the repositories.

note: for the first time it let me update the repository but now it doesn't let me update the repository.


回答1:


Same Problem with me, but i solved this problem by adding:

implementation 'com.google.android.gms:play-services-auth:15.0.1'

Hope it helps:)




回答2:


Make sure you add that repository in your repository list. In your app’s build.gradle

allprojects {
    repositories {
        jcenter()  // This is missing 

    }
}


来源:https://stackoverflow.com/questions/44647943/errorfailed-to-resolve-com-google-android-gmsplay-services-auth-api-phone10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!