cannot link lib by invoking npx react-native link react-native-adyen-payment
Log
warn Calling react-native link [packageName] is deprecated in favor of autolinking. It will be removed in the next major release.
Autolinking documentation: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md
info iOS module "react-native-adyen-payment" is already linked
info Linking "react-native-adyen-payment" Android dependency
error Linking "react-native-adyen-payment" failed.
Error: ENOENT: no such file or directory, open '/Users/PhilLui/Documents/poc/rn_ts_testcase/android/app/src/main/java/com/rn_ts_testcase/MainApplication.java'
at Object.openSync (node:fs:585:3)
at Object.readFileSync (node:fs:453:35)
at applyPatch (/Users/PhilLui/Documents/poc/rn_ts_testcase/node_modules/@react-native-community/cli-platform-android/build/link/patches/applyPatch.js:42:51)
at Object.registerNativeAndroidModule [as register] (/Users/PhilLui/Documents/poc/rn_ts_testcase/node_modules/@react-native-community/cli-platform-android/build/link/registerNativeModule.js:34:27)
at /Users/PhilLui/Documents/poc/rn_ts_testcase/node_modules/@react-native-community/cli/build/commands/link/linkDependency.js:63:16
at Array.forEach (<anonymous>)
at linkDependency (/Users/PhilLui/Documents/poc/rn_ts_testcase/node_modules/@react-native-community/cli/build/commands/link/linkDependency.js:36:32)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Object.link [as func] (/Users/PhilLui/Documents/poc/rn_ts_testcase/node_modules/@react-native-community/cli/build/commands/link/link.js:110:5)
at async Command.handleAction (/Users/PhilLui/Documents/poc/rn_ts_testcase/node_modules/@react-native-community/cli/build/index.js:192:9)
info Run CLI with --verbose flag for more details.
Issue
cannot link lib by invoking
npx react-native link react-native-adyen-payment
Log
Dependency