faizalshap / react-native-otp-verify

React native sms verification without additional permissions
MIT License
241 stars 95 forks source link

Android build is not working. #67

Closed techwizard131 closed 1 year ago

techwizard131 commented 1 year ago

It'd been working for over a year. But I have this building issue from yesterday. image

version: 1.1.4 build gradle looks like this. image

faizalshap commented 1 year ago

Hi @williamliu131 I think it is an issue with play services version. In the latest version i have used new apis from google for retrieving phone number from device which makes use of this classes. Can you try updating the googlePlayServicesVersion to 20.3.0

LeonardoCalazans commented 1 year ago

My problem was image

Hi @williamliu131 I think it is an issue with play services version. In the latest version i have used new apis from google for retrieving phone number from device which makes use of this classes. Can you try updating the googlePlayServicesVersion to 20.3.0

This solution fixed it, but what does it imply going from version googlePlayServicesVersion = "16.1.0" to googlePlayServicesVersion = "20.3.0" ?

techwizard131 commented 1 year ago

Hi, @faizalshap, Thanks for the reply. But I can't use higher version of googlePlayServices since it's affecting to other libraries.

The question is why this suddenly has stopped working. Actually, I'd been using 1.0.4 version for over a year and it'd been working fine until few days ago. Do you have any idea?

faizalshap commented 1 year ago

Hi @williamliu131 in this case please use the old version of the library The library must have updated and that' would have caused the issue. so make sure you remove ~ or ^ from the version in package.json file and then do npm i and run

techwizard131 commented 1 year ago

@faizalshap, Finally!!! It works!!! I've never exactly known the usage of ~ or ^. Thanks. I really appreciate it.