android - Android Emulator 无法在 react-native run-android 中运行我的应用
问题描述
运行时出现反应本机配置错误react-native run-android
。该命令给出此错误消息:
JS server already running.
Building and installing the app on the device (cd android && gradlew.bat installDebug)...
Error: Could not find or load main class JAVA_OPTS=-Xms256M
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html
我无法解决这个问题。我安装了所有依赖项。我的模拟器也在运行,但应用程序没有启动。
解决方案
尝试设置您的 Android 开发环境。配置环境变量(如路径),确保在运行时找到您的 android sdk 工具(如 adb)!
推荐阅读
- python - 为自定义包添加 lambda 层
- hadoop - Hadoop:如何将 Web 日志保存到本地文件?
- r - 如何在 R 中将列添加到网状小标题
- node.js - nodejs 的单独路由、控制器、api 和模型文件夹
- python - python中f字符串中的\有什么替代方法吗?
- android - 如何折叠 Recyler 视图当 scoll up 另一个 Recyler 视图时
- facebook - 测试 facebook 商业帐户?
- css - css 样式应用延迟 1 秒(样式组件?)
- python-3.x - 使用 kasa 的更新功能时,带有 pyhon3 的异步等待错误
- c++ - 通过指针查找数组的大小