簡體   English   中英

無法為 android 運行 react-native

[英]Can not run react-native for android

我將非常感謝任何幫助。 我正在嘗試為 android 運行 react-native 應用程序:

npm run android

我得到什么:

> react-native run-android

info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1174 file(s) to forward-jetify. Using 8 workers...
info Starting JS server...
info Installing the app...
Error occurred during initialization of boot layer
java.lang.module.FindException: Module java.se.ee not found

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 app:installDebug -PreactNativeDevServerPort=8081

    at makeError (/Users/shulman/champ/node_modules/@react-native-community/cli-platform-android/node_modules/execa/index.js:174:9)
    at /Users/shulman/champ/node_modules/@react-native-community/cli-platform-android/node_modules/execa/index.js:278:16
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async runOnAllDevices (/Users/shulman/champ/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:109:5)
    at async Command.handleAction (/Users/shulman/champ/node_modules/@react-native-community/cli/build/index.js:192:9)
info Run CLI with --verbose flag for more details.

如果重要的話,我正在研究 M1 芯片。

在您的項目中安裝這兩個 package 然后再次嘗試運行 =>

npm i 噴射器

npx 噴射

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM