Open duylinhdang1998 opened 1 year ago
I had a problem in RN 0.69. can't found maven And I can't run your example. It had same problem
@duylinhdang1998 Sorry for my super late reply, it's been a while since I've touched RN.
Have you tried branches https://github.com/jackbayliss/react-native-nfc-card-reader/tree/gradle7.0 or https://github.com/jackbayliss/react-native-nfc-card-reader/tree/gradle7.2
I am also facing the same issue and have tried all 3 branches:
npm install react-native-nfc-card-reader --save
npm install "https://github.com/jackbayliss/react-native-nfc-card-reader.git#gradle7.0" --save
npm install "https://github.com/jackbayliss/react-native-nfc-card-reader.git#gradle7.2" --save
@ajaysidhu Thank you for letting me know, I need to dedicate some time to investigating when I'm free. Do you have a RN sample app I can use for testing?
I fixed it by copying your code into my android folder and export native modules. It worked
@jackbayliss Here is the minimal project with the issues:
@ajaysidhu Thanks for the information, I can't see the project sadly- could you make it public? I just need the basics so I can tinker with it :)
Oops! Can you please check again @jackbayliss ?
@ajaysidhu perfect!
Thanks
Thanks for repo
I have the same problem. Have you solved this issue?
I opened the Android project in Android Studio. And it shows some problems with building the Gradle project and shows that the problem in
react-native-nfc-card-reader\android\build.gradle' line: 118
So I just commented the line below and it's working now. but shows only card number and date
classpath += files(project.getConfigurations().getByName('customConfig').asList())
After spending hours of trying to make it work, I ended up downgrading my gradle
version to 6.9
and React Native version to 0.67.4
. It was painful to downgrade React Native version from 0.70 to 0.67, but it was the only solution for me because NFC card scanning was an important feature for our app.
Hi, Same issue here. Any fix for 0.70.5? Regards.
Any update we all are facing the same issue? @jackbayliss
@Adeel984 I will check over the holiday period, I built this a long time ago so I'm not sure what's changed, it seems gradle doesn't play ball.
I will download the latest RN version and see what I can do while I'm free ☺️
After spending hours of trying to make it work, I ended up downgrading my
gradle
version to6.9
and React Native version to0.67.4
. It was painful to downgrade React Native version from 0.70 to 0.67, but it was the only solution for me because NFC card scanning was an important feature for our app.
is there any app repo, u build after downgrading? if possible please share it with us, thanks in advance
This issue is still a thing, if anyone has time to make a PR I will for sure pull it in. I haven't had time to do any updates, I'm no longer working on apps etc.
I got the error in this image in RN 0.7 when I try to run