这是我第一次做原生应用。我正确配置了所有环境变量,安装了JDK 11,安装了Chocolatey,一切都正确,但没有在模拟器或usb设备上运行。有人能帮忙吗?
(node:23364) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
info JS server already running.
'"adb"' n�o � reconhecido como um comando interno
ou externo, um programa oper�vel ou um arquivo em lotes.
info Launching emulator...
error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`.
warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch.
info Installing the app...
ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
at makeError (C:Usersana.tomazDownloadsAppVanzeironode_modulesexecaindex.js:174:9)
at C:Usersana.tomazDownloadsAppVanzeironode_modulesexecaindex.js:278:16
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async runOnAllDevices (C:Usersana.tomazDownloadsAppVanzeironode_modules@react-native-communitycli-platform-androidbuildcommandsrunAndroidrunOnAllDevices.js:109:5)
at async Command.handleAction (C:Usersana.tomazDownloadsAppVanzeironode_modules@react-native-communityclibuildindex.js:142:9)
info Run CLI with --verbose flag for more details
warn未连接应用程序。发送"devMenu"所有的React Native应用都失败了。确保你的应用程序在模拟器或通过USB连接的手机上运行。打开开发人员菜单…metro-file-map:匆忙模块命名冲突:AppVanzeiro以下文件共享它们的名称;请调整一下你的速度。* package.json* AppVanzeiro package.json
Failed to construct transformer: DuplicateError: duplicate files or mock。请查看控制台以获取更多信息C:Usersana.tomazDownloadsAppVanzeironode_modulesmetro-file-mapsrcindex.js:553:17(C:Usersana.tomazDownloadsAppVanzeironode_modulesmetro-file-mapsrcindex.js:624:9)在过程。processTicksAndRejections(节点:内部/过程/task_queues: 95:5)at async Promise。所有(指数17) users ana.tomaz downloads AppVanzeironode_modulesmetro-file-mapsrcindex.js:395:22at async DependencyGraph。准备好了(C: ana.tomaz 用户下载 AppVanzeiro node_modules 地铁 src node-haste DependencyGraph.js: 94:5)async Bundler。准备好了(C: 用户下载 ana.tomaz AppVanzeiro node_modules 地铁 src Bundler.js: 75:5)at async IncrementalBundler。准备好了(C: 用户下载 ana.tomaz AppVanzeiro node_modules 地铁 src IncrementalBundler.js: 327:5)在异步服务器。ready (C:Usersana.tomazDownloadsAppVanzeironode_modulesmetrosrcServer.js:1247:5) {mockPath1:"package.json",mockPath2:"AppVanzeiro package.json">