"react-native link" Android 与 "no such file or directory" 失败



我已经使用了我要集成的两个单独的RN本机Libs。必须有一些引起

的设置
rnpm-install info Linking react-native-keep-awake android dependency
rnpm-install ERR! Something went wrong while linking. Error: ENOENT: no such file or directory, open '/Users/Me/Projects/project-name/android/app/src/main/java/com/company-name/project-name/MainApplication.java'
Please file an issue here: https://github.com/facebook/react-native/issues
ENOENT: no such file or directory, open '/Users/Me/Projects/project-name/android/app/src/main/java/com/company-name/project-name/MainApplication.java'

而不是com/company-name/project-name/MainApplication.java,我有com/project-name/MainApplication.java。我如何在此目录中找到 react-native link以找到mainapplication.java,或者如何更改目录结构以匹配RN试图找到的内容?

npm install --save-dev babel-plugin-module-resolver

或使用纱线

yarn add --dev babel-plugin-module-resolver

为我提供帮助

相关内容

  • 没有找到相关文章

最新更新