Open Morton4idps opened 1 year ago
I have the c72 device and I get the same error when I try to read a single tag. I don't know what to do since I'm a beginner on android studio.
Just to let you know, I also had the same error as you at trying to install the library, I just used npm install c72-rfid-scanner --force
and then did the steps you pointed out above.
hi, you have to update the library, I'm currently using DeviceAPI_ver20231208_release.aar instead of .jar preinstalled in the module.
"react-native": "0.71.3"
Test Android device is Google Pixel 6 (Android 13)
I don't have the c72 device yet, but I want to test it can be work first. I use sample code will show the error.
If click fun scanSingleTag show error:
Attempt to invoke virtual method 'java.lang.String com.rscja.deviceapi.entity.UHFTAGInfo.getEPC()' on a null object reference
on a null object reference means it can be work ? Or just because I don't have the c72 device for testing ?
Here is part of the code from sample code:
Here is what I try step flow:
Step1:
Can't install the package.
npm install c72-rfid-scanner --save
It will show error
ERESOLVE unable to resolve dependency tree
Step2:
If use yarn
yarn add c72-rfid-scanner
build the project on Android will show error
Plugin with id 'maven' not found.
then change the code
apply plugin: 'maven'
toapply plugin: 'maven-publish'
onnode_modules/c72-rfid-scanner/android/build.gradle
build the project will show error
Step3:
then paste the code subprojects on android/build.gradle
build project will show error
Could not find method mavenDeployer() for arguments
Step4:
commented out the code on node_modules/c72-rfid-scanner/android/build.grade
then build the project successfully and test the code.