Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android cannot link lib if MainApplication is Kotlin file #70

Open
phil-lui opened this issue Jan 3, 2022 · 0 comments
Open

Android cannot link lib if MainApplication is Kotlin file #70

phil-lui opened this issue Jan 3, 2022 · 0 comments

Comments

@phil-lui
Copy link

phil-lui commented Jan 3, 2022

Issue

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.

Dependency

{
  "dependencies": {
    "@react-native-async-storage/async-storage": "^1.15.14",
    "ramda": "^0.27.1",
    "react": "17.0.2",
    "react-native": "0.66.3",
    "react-native-uuid": "^2.0.1"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9",
    "@babel/runtime": "^7.12.5",
    "@react-native-community/eslint-config": "^2.0.0",
    "@testing-library/jest-native": "^4.0.4",
    "@testing-library/react-native": "^9.0.0",
    "@types/jest": "^26.0.23",
    "@types/ramda": "types/npm-ramda#dist",
    "@types/react-native": "^0.66.4",
    "@types/react-test-renderer": "^17.0.1",
    "babel-jest": "^26.6.3",
    "eslint": "^7.14.0",
    "jest": "^27.4.0",
    "jest-fetch-mock": "^3.0.3",
    "metro-react-native-babel-preset": "^0.66.2",
    "react-dom": "^17.0.2",
    "react-native-adyen-payment": "^1.8.3",
    "react-test-renderer": "17.0.2",
    "ts-jest": "^27.0.7",
    "typescript": "^4.4.4"
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant