[英]Can not run react-native for android
I'll be very appreciate any help.我将非常感谢任何帮助。 I'm trying to run react-native app for android:
我正在尝试为 android 运行 react-native 应用程序:
npm run android
What i get:我得到什么:
> 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.
I'm working on M1 chip if it matters.如果重要的话,我正在研究 M1 芯片。
install this two package in your project then try again to run =>在您的项目中安装这两个 package 然后再次尝试运行 =>
npm i jetifier npm i 喷射器
npx jetify npx 喷射
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.