Error:Failed to resolve: com.google.android.gms:pl

2019-09-20 05:53发布

问题:

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 

    }
}