简体   繁体   English

无法为 android 运行 react-native

[英]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.

相关问题 java.io.IOException:无法编写 react-native run-android 失败 - java.io.IOException: Can't write react-native run-android failed 升级到 react-native 版本 0.60.4 后 react-native run-android 出错 - Error with react-native run-android after upgrade to react-native version 0.60.4 react-native run-android 不起作用:/ - react-native run-android does not work :/ 在Ubuntu 14上运行“ react-native run-android”时出错 - Error Running 'react-native run-android' on ubuntu 14 react-native run-android 构建错误 ':app:generateDebugBuildConfig' - react-native run-android Building Error ':app:generateDebugBuildConfig' 在运行react-native run-android时发生错误react native - Error react native when run react-native run-android 无法在本机上的模拟器上运行应用 - Can't run app on emulator in react-native 在 MainActivity.java React-native Android 中找不到符号 - Can not find symbol in MainActivity.java React-native Android npx react-native run-android 错误 > 任务:react-native-gradle-plugin:compileKotlin FAILED - npx react-native run-android error > Task :react-native-gradle-plugin:compileKotlin FAILED 我无法执行 npx react-native run-android,Java 错误; 无法确定任务“:app:compileDebugJavaWithJavac”的依赖关系。 LINUX - I can't do npx react-native run-android, Java error; Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'. LINUX
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM