revtel / react-native-nfc-manager

React Native NFC module for Android & iOS
MIT License
1.32k stars 312 forks source link

Build Failed after install react-native-nfc-manager - json.put("canMakeReadOnly", JSONObject.NULL) #680

Closed EmanuelDesarrollo closed 8 months ago

EmanuelDesarrollo commented 8 months ago

Performing the installation for a demo on Android after installing and trying to compile, the error shown in the image appeared:

image

\node_modules\react-native-nfc-manager\android\src\main\java\community\revteltech\nfc\Util.java:47: error: ';' expected json.put("canMakeReadOnly", JSONObject.NULL)

After going to the path shown in the error it is evident that a semicolon is indeed missing on the indicated line. After correcting this, it allows compiling without problems.

Versions: "react-native": "0.72.7", "react-native-nfc-manager": "^3.14.10"

whitedogg13 commented 8 months ago

@EmanuelDesarrollo It's such a stupid error... I just fixed it and published v3.14.11. Thanks for reporting that!