Closed jitendra-koodo closed 3 years ago
cleaning the build folder did the trick for me! cd android && ./gradlew clean from the project root folder
This issue still persist and it should be because it's using import android.support.annotation.NonNull;
when it should be using import androidx.annotation.NonNull;
The change has been made in RNOtpVerifyModule.java
but it's not deployed in any new version yet.
any updates? im running into same issue
In order to get rid of this trouble. I've created a fork and fixed this issue in this library. As we can see, this repository is deprecated, it hasn't been maintained.
I've changed the name to react-native-otp-autocomplete
The installation and usage are the same, you don't need to change anything.
yarn add react-native-otp-autocomplete
import OtpAutocomplete from 'react-native-otp-autocomplete';
OtpAutocomplete.getHash().then(() => {}).cathc(() => {});
OtpAutocomplete.getOtp().then(() => {}).cathc(() => {});
OtpAutocomplete.removeListener();
You can see the documentation.
Feel free to create issues and submit some pull requests to maintain the repo.
I solved it with jetifier. Check below link: Click Here
In order to get rid of this trouble. I've created a fork and fixed this issue in this library. As we can see, this repository is deprecated, it hasn't been maintained.
I've changed the name to react-native-otp-autocomplete
The installation and usage are the same, you don't need to change anything.
yarn add react-native-otp-autocomplete
import OtpAutocomplete from 'react-native-otp-autocomplete'; OtpAutocomplete.getHash().then(() => {}).cathc(() => {}); OtpAutocomplete.getOtp().then(() => {}).cathc(() => {}); OtpAutocomplete.removeListener();
You can see the documentation.
Feel free to create issues and submit some pull requests to maintain the repo.
This fork worked for me
In order to get rid of this trouble. I've created a fork and fixed this issue in this library. As we can see, this repository is deprecated, it hasn't been maintained.
I've changed the name to react-native-otp-autocomplete
The installation and usage are the same, you don't need to change anything.
yarn add react-native-otp-autocomplete
import OtpAutocomplete from 'react-native-otp-autocomplete'; OtpAutocomplete.getHash().then(() => {}).cathc(() => {}); OtpAutocomplete.getOtp().then(() => {}).cathc(() => {}); OtpAutocomplete.removeListener();
You can see the documentation.
Feel free to create issues and submit some pull requests to maintain the repo.
This worked for me too
Getting this error while building release version. Same error on Mac and Windows. What could be the reason?
-
FAILURE: Build failed with an exception.