简体   繁体   English

无法在 Android Studio 模拟器上启动 React Native

[英]Cannot start React Native on Android Studio Emulator

I just started with React Native and I have a problem about running react native project, other projects are running normally but this project doesn't work and it doesn't give me any specific error.我刚开始使用 React Native,我在运行 React Native 项目时遇到问题,其他项目运行正常,但这个项目不起作用,也没有给我任何具体错误。 When I build on android, application suddenly killed right after start.当我在 android 上构建时,应用程序在启动后突然终止。 When I "react-native run-android"当我“react-native run-android”时

This picture show is loading此图片显示正在加载在此处输入图像描述

and then然后在此处输入图像描述 在此处输入图像描述

the console控制台在此处输入图像描述

it took me hours to fix it but still don't know why can somebody help me?我花了几个小时来修复它,但仍然不知道为什么有人可以帮助我? have a nice day guys祝你们有美好的一天

add In the android/app/build.gradle在android/app/build.gradle中添加

implementation(platform("com.squareup.okhttp3:okhttp-bom:4.9.0"))

source: https://github.com/tinycreative/react-native-intercom/issues/441来源: https://github.com/tinycreative/react-native-intercom/issues/441

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Android Studio模拟器上反应原生 - React Native on Android Studio Emulator 我无法使用安卓工作室的安卓模拟器在我的 Windows 上启动我的原生反应 - i am unable to start up my react native on my windows using andriod emulator from andriod studio 无法从Android Studio构建本机,构建失败 - cannot build react-native from Android Studio, Build failed Android Emulator React Native Geolocation 不起作用 - Android Emulator React Native Geolocation not working Axios (React Native) POST 请求适用于 iOS(模拟器)但不适用于 Android(模拟器) - Axios (React Native) POST request working on iOS (emulator) but not on Android (emulator) 无法在 vs 代码上启动模拟器以进行本机反应 - Can't start emulator on vs code for react native React Native:uri 图像未在 android 上显示,但在 ios 模拟器上完美显示 - React Native: uri image not showing on android but perfectly displays on the ios emulator React-native Android 仿真器需要开启调试器模式 - React-native Android Emulator needs to turn on debugger mode 无法在 Android 模拟器中运行反应本机应用程序 - 使用 EXPO cli - Not able to run react native app in Android Emulator - using EXPO cli 在模拟器上的 android 12+ 上反应原生应用程序崩溃 - React native app crashing on android 12+ on emulator
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM