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.
What went wrong:
Execution failed for task ':react-native-otp-verify:compileDebugJavaWithJavac'.
Compilation failed; see the compiler error output for details.
Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
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.
What went wrong: Execution failed for task ':react-native-otp-verify:compileDebugJavaWithJavac'.
Try:
2: Task failed with an exception.**