react-native-nfc-manager icon indicating copy to clipboard operation
react-native-nfc-manager copied to clipboard

Android build fails

Open angelica-snowit opened this issue 2 months ago • 1 comments

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

angelica-snowit avatar Oct 23 '25 14:10 angelica-snowit

For legacy arch you need to use v3. v4 only supports new arch.

tastydev avatar Oct 27 '25 19:10 tastydev