我根本不想运行模拟器。但是'react-native run-android'启动了一个模拟器,即使我已经连接了一个物理设备('adb devices‘命令显示了它),然后'react-native run-android’命令失败并返回错误'error: more than one device/emulator'
info JS server already running.
'C:\Users\Wings' is not recognized as an internal or external command,
opera
当我运行react-native run-android来运行我的React Native应用程序时,我得到了这个错误,然后构建失败: 'C:\Users\Alex\AppData\Local\Android\Sdk/platform-tools/adb' is not recognized as an internal or external command,
operable program or batch file.
error Failed to launch emulator. Reason: Emulator exited before boot..
warn
问题:这个问题在几天之间没有变化。即使我有运行npx react-native start的metro,当我运行npx react-native run-android时,它会启动它自己的metro服务器,不允许我进行“快速刷新”,它基本上是将应用程序的调试版本安装到设备上。我需要它来快速刷新开发的目的。已经尝试了问题上的步骤:Unable to load script from assets index.android.bundle on windows 为了测试和调试我的android版本,我在一个Powershell窗口中运行了一个仿真器,使用npx react-native star
我试图让我的反应本机项目在android模拟器上运行,而在Mac操作系统上运行。它在我的窗户上很好用。
在我的Mac上,我到终端输入react-native run-android并得到错误消息:
$ react-native run-android
Scanning 616 folders for symlinks in /Users/John/Documents/myreactnativeproject/node_modules (17ms)
Starting JS server...
Building and installing the app on the device (cd an
我很好奇为什么我需要打开Xcode并点击“构建并运行”(根据)才能在我的iPhone上运行我的应用程序。
$ react-native help
Usage: react-native <command>
Commands:
- start: starts the webserver
- bundle: builds the javascript bundle for offline use
- unbundle: builds javascript as "unbundle" for offline use
- new-library: gene
我有一个困难的时间试图配置我的模拟器与反应本机。我已经安装了模拟器,但无法正确运行语句:react-native run-android,这是我一直得到的错误。(p.s.在疑难解答中似乎没有解决方案。我试图改变那些无效的等级属性)
C:\Users\Dell\AwesomeProject>react-native run-android
Scanning folders for symlinks in C:\Users\Dell\AwesomeProject\node_modules (31ms)
JS server already running.
Building and insta
我尝试在android模拟器上运行应用程序,但失败了。我运行react-native run-android,BUILD是成功的,但我得到的错误类型3,我没有看到它安装在模拟器上。
当我在cmd中运行"react-native run-android“时,我得到了这一部分:
Installed on 1 device.
BUILD SUCCESSFUL
Total time: 2 mins 24.714 secs
Starting the app on ***** (...\Android\sdk/platform-tools/adb -s **** shell am start
我用Windows8创建了一个react原生应用程序react-native init AwesomeProject。
我安装了Genymotion 2.6.0,并在模拟器中运行了Google Nexus 7.0镜像。
我启动服务器react-native start。
当我运行react-native run-android时,我得到这个错误:
D:\react\AwesomeProject> react-native run-android
JS server already running.
Building and installing the app on the device
我已经成功地启动了一个新的react-native项目。然后,每次我尝试使用命令react-native run-android运行我新构建的项目时,它都会在info Starting JS server...上产生阻塞。
这是输出:
$ react-native run-android
info Running jetifier to migrate libraries to AndroidX".
You can disable it using "--no-jetifier" flag.
Jetifier found 855 file(s) to forward-
我在OSX上使用的是react-native 0.43.3。我试着在Android上运行应用程序,然后收到消息
react-native run-android
Scanning 568 folders for symlinks in /Users/ruci.k/project/mayacrew/supermembers/supermembers/node_modules (5ms)
JS server already running.
Building and installing the app on the device (cd android && ./gradlew