FAILURE: Build failed with a exception.
- 哪里出错了:配置根项目'testRn'时出现问题。
无法解析配置':classpath'的所有文件。无法找到lint-model-30.0.4.jar (com.android.tools.lint:lint-model:30.0.4).
BUILD FAILED in 1s
at makeError (/Users/rimaj/Desktop/testRn/node_modules/execa/index.js:174:9)
at /Users/rimaj/Desktop/testRn/node_modules/execa/index.js:278:16
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async runOnAllDevices (/Users/rimaj/Desktop/testRn/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:109:5)
at async Command.handleAction (/Users/rimaj/Desktop/testRn/node_modules/@react-native-community/cli/build/index.js:192:9)
info运行带有——verbose标志的命令行获取更多详细信息。
看起来这是不工作的节点模块@react-native-community/cli-platform-android
你应该确认模块是最新的并且正确安装。