faizalshap / react-native-otp-verify

React native sms verification without additional permissions
MIT License
239 stars 92 forks source link

Issue while building the app #75

Closed sambeetsahu closed 1 year ago

sambeetsahu commented 1 year ago

I am trying to implement the auto read otp feature but it is not working while the building the project I am facing following error while building the app

error: package com.google.android.gms.auth.api.identity does not exist import com.google.android.gms.auth.api.identity.GetPhoneNumberHintIntentRequest;

error: package com.google.android.gms.auth.api.identity does not exist import com.google.android.gms.auth.api.identity.Identity;

/node_modules/react-native-otp-verify/android/src/main/java/com/faizal/OtpVerify/OtpVerifyModule.java:75: error: cannot find symbol GetPhoneNumberHintIntentRequest request = GetPhoneNumberHintIntentRequest.builder().build(); ^ symbol: class GetPhoneNumberHintIntentRequest location: class OtpVerifyModule

/node_modules/react-native-otp-verify/android/src/main/java/com/faizal/OtpVerify/OtpVerifyModule.java:75: error: cannot find symbol GetPhoneNumberHintIntentRequest request = GetPhoneNumberHintIntentRequest.builder().build(); ^ symbol: variable GetPhoneNumberHintIntentRequest location: class OtpVerifyModule

/react-native-otp-verify/android/src/main/java/com/faizal/OtpVerify/OtpVerifyModule.java:76: error: cannot find symbol Identity.getSignInClient(currentActivity) ^ symbol: variable Identity location: class OtpVerifyModule

/node_modules/react-native-otp-verify/android/src/main/java/com/faizal/OtpVerify/OtpVerifyModule.java:179: error: cannot find symbol phoneNumber = Identity.getSignInClient(activity).getPhoneNumberFromIntent(data); ^ symbol: variable Identity location: class OtpVerifyModule Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. 6 errors

**FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

2: Task failed with an exception.**

sambeetsahu commented 1 year ago

@faizalshap please help how to reslove this.

faizalshap commented 1 year ago

Hi @sambeetsahu please check your play services version check this issue #67

faizalshap commented 1 year ago

closing due to no activity