我可以在没有android手机的情况下运行android emulator吗?我已经安装了android studio,并且已经安装了android虚拟设备.但是,当我try 运行它时,它会出现如下错误:

Couldn't start project on Android: Error running adb: No Android device found. Please connect a device and follow the instructions here to enable USB debugging: https://developer.android.com/studio/run/device.html#developer-device-options. If you are using Genymotion go to Settings -> ADB, select "Use custom Android SDK tools", and point it at your Android SDK directory.

我只想在没有usb的pc上看到模拟器.我有一部iPhone,但它只是出现在我的手机上,而不是使用expo scan条形码显示在我的电脑上.我不想这样做,因为在我看来,调试等都不舒服.我在电脑中使用windows,所以我不能使用iOS作为模拟器.

how to run expo android emulator on windows?

推荐答案

是的,你可以:-(使用零android studio配置)

  1. 全局安装expo cli.
  2. 安装android Studio.
  3. 通过运行expo cli init创建项目
  4. 无需在android Studio上进行任何配置.
  5. 从android studio打开现有项目

Open the expo project

  1. 然后打开创建的expo项目,它将作为一个android项目提供,带有
  2. 然后打开AVD管理器

  3. 下载并安装任何你想要的设备,但一定要确保其高于安卓N

  4. 安装所需的模拟器后

enter image description here

  1. 在运行项目之前运行模拟器
  2. 然后运行expo开始启动项目
  3. go 地铁建设商那里说运行android

  4. 如果第一次没有运行,或者出现错误,请关闭项目

from here

  1. 那么它应该会起作用

React-native相关问答推荐

1.5.1 nxworkspace+react-native 版本的Axios url未定义问题

react-native-fs 改变 toUrl 本身

使用 React Native 正确处理注销

react native HTML entities

我如何知道我的代码是否作为 React Native 运行

React Native 错误:Animated.event now requires a second argument for options

React-Native:Facebook 和 Google 登录

React Native localhost 另一个调试器已经连接

使用 create-react-native-app 创建了一个应用程序,如何将其发布到 Google Play store ?

没有找到 `React-fishhook` 的 podspec

java.lang.UnsatisfiedLinkError:找不到要加载的 DSO:libfbjni.so 结果:0

如何在 React Native 中获取电话号码?

如何使用特定目标运行 react-native run-ios

在 react-native 中设置动态 'initialRouteName'

区别需要MainQueueSetup 和dispatch_get_main_queue?

React Native 从导航堆栈中清除上一个屏幕

为react-native TextInput 设置边框

在 componentWillUnmount 中清除超时的更好方法

React Native <>(空)组件到底是什么

使用expo react-native链接?