首页 > 移动平台 > 详细

react-native 安卓模拟器安卓_windows

时间:2018-01-15 17:58:34      阅读:220      评论:0      收藏:0      [点我收藏+]

安装步骤

  1. Expo 下载
  2. 下载夜神模拟器,尝试过 genymotion,但是 apk 文件传输不了;
  3. 打开命令行,cd 到夜神模拟器目录下 /bin,查看夜神模拟器的端口(先运行夜神),用 adb 连接上夜神
  4. 将 Expo 拖到模拟器上安装;
  5. 运行 npm run android 即可。

注意

  1. 出现 Error running adb: No Android device found. Please connect a device and follow t he instructions here to enable USB debugging: https://developer.android.com/studio/run/device.html#developer-device-options. I f you are using Genymotion go to Settings -> ADB, select "Use custom Android SDK tools", and point it at your Android SDK directory. 表示夜神模拟器未启动或者 adb 未连接到夜神,用 adb devices 查看是否连接
  2. 提示 Starting: Intent { act=android.intent.action.VIEW dat=10.128.122.228:3000 pkg=com.ionicframework.myapp517087 } Error: Activity not started, unable to resolve Intent { act=android.intent.action.VIEW dat=10.128.122.228:3000 flg=0x10000000 pkg=com.ionicframework.myapp517087 } 表示模拟器未安装 Expo,需要安装。

react-native 安卓模拟器安卓_windows

原文:https://www.cnblogs.com/ende93/p/8289076.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!