我无法在android studio模拟器中运行react native项目

时间:2020-02-14 04:08:49

标签: reactjs react-native

error ENOENT: no such file or directory, open 'app\build\intermediates\merged_manifests\debug\AndroidManifest.xml'. Run CLI with --verbose flag for more details.
Error: ENOENT: no such file or directory, open 'app\build\intermediates\merged_manifests\debug\AndroidManifest.xml'
    at Object.openSync (fs.js:457:3)
    at Object.readFileSync (fs.js:359:35)
    at getLaunchPackageName (E:\ReactJS\project1\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\getLaunchPackageName.js:161:33)
    at buildAndRun (E:\ReactJS\project1\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:163:63)
    at E:\ReactJS\project1\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:135:12
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async Command.handleAction (E:\ReactJS\project1\node_modules\@react-native-community\cli\build\index.js:182:9)

1 个答案:

答案 0 :(得分:0)

添加到您的package.json中:

"resolutions": {
"@react-native-community/cli-platform-android": "2.9.0"
},