react-native-nfc-manager
react-native-nfc-manager copied to clipboard
Android build fails
When I try to compile an Android release the build failed with this message:
* What went wrong:
Execution failed for task ':react-native-nfc-manager:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler output below.
/Users/angelicarosa/Work/snowit/node_modules/react-native-nfc-manager/android/src/main/java/community/revteltech/nfc/NfcManager.java:44: error: cannot find symbol
class NfcManager extends NativeNfcManagerSpec implements ActivityEventListener, LifecycleEventListener {
^
symbol: class NativeNfcManagerSpec
/Users/angelicarosa/Work/snowit/node_modules/react-native-nfc-manager/android/src/main/java/community/revteltech/nfc/NfcManagerPackage.java:22: error: incompatible types: NfcManager cannot be converted to NativeModule
modules.add(new NfcManager(reactApplicationContext));
Version: v4.0.0-beta.6 NewArch disabled
For legacy arch you need to use v3. v4 only supports new arch.