Issue
I am using Twilio for SMS verification to my android app using Android Studio, and I found this Dependency from Twilio official documentation(compile 'com.twilio: verification:+'), here is the link: https://www.twilio.com/docs/guides/twilio-verification-sdk-integration-guide/integrating-twilio-verification-sdk-using-sample-backend#step-3-add-twilio-verification-sdk-for-android
but as add this dependency, the Gradle shows error and can not be built, here I have already asked my answer: Error:Failed to resolve: com.google.android.gms:play-services-auth-api-phone:10.2.5
Is there anyone who knows what is the exact dependency of Twilio Verification to add in my Android Studio to use Twilio SMS verification.
Solution
another Twilio developer evangelist here.
The issue with that document is that it fails to mention that you will need to use a local Google Play services SDK for the time being until Google releases it out in the wild.
To get that, all you need to do is fill up the form in this page to get the SDK, and the in your code you will do the following:
- Open
~/.gradle/gradle.properties
- add
PARTNER_SDK_DIR=/Users/{USER_NAME}/workspace/partner-sdk
- Import the SDK
So you should end up with somthing that looks like this:
allprojects {
repositories {
maven {
url PARTNER_SDK_DIR
}
jcenter()
}
}
We have a sample application on our github repository which you can download and test. You will find it here
Hope this helps you!
Answered By - Marcos Placona Answer Checked By - Candace Johnson (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.