react -native Android真机调试注意的问题
来源:互联网 发布:什么是行知教育思想 编辑:程序博客网 时间:2024/06/06 14:17
1.用Android studio把ipk运行到真机上面去。
2.再用vscode把项目打开,再把服务用npm启动起来
(1).用vscode的终端输入:npm start
(2).出现端口占用情况
Looking for JS files in
/Users/xiangcaihua/Desktop/ClaimPlatform
ERROR Packager can't listen on port 8081
Most likely another process is already using this port
Run the following command to find out which process:
lsof -i :8081
Then, you can either shut down the other process:
kill -9 <PID>
or run packager on different port.
Loading dependency graph...npm ERR! code ELIFECYCLE
npm ERR! errno 11
npm ERR! ClaimPlatform@0.0.1 start: `node node_modules/react-native/local-cli/cli.js start`
npm ERR! Exit status 11
npm ERR!
npm ERR! Failed at the ClaimPlatform@0.0.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
╭─────────────────────────────────────╮
│ │
│ Update available 5.3.0 → 5.5.1 │
│ Run npm i -g npm to update │
│ │
╰─────────────────────────────────────╯
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/xiangcaihua/.npm/_logs/2017-11-18T09_02_35_916Z-debug.log
(3)输入lsof -i :8081
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
node 4773 xiangcaihua 36u IPv6 0x4ccbef72e2aeecdb 0t0 TCP *:sunproxyadmin (LISTEN)
kill node 4773 xiangcaihua 42u IPv6 0x4ccbef72d626775b 0t0 TCP 172.20.10.7:sunproxyadmin->172.20.10.
(4)输入 kill -9 4773把node那个服务kill掉
(5)然后再npm start
3 .在真机上进行设置Dev setting 设置端口,ip地址为你电脑的地址,端口号一般为:8081
4. 确保手机和电脑在同一个网段。
5.reload完成Mac电脑调试到真机的全过程,以及注意事项为:确保在同一网段

- react -native Android真机调试注意的问题
- React Native真机调试
- React Native真机调试
- React native真机调试
- React-Native初学者的模拟器调试及真机调试
- react native for android 真机调试报错
- React-Native真机调试(Android,Windows)
- React-native-ios真机调试步骤
- react-native IOS真机调试技巧
- react native 真机调试 及常见问题
- React Native android真机开发步骤
- react-native+vm+macos X+ios 真机调试
- React native 免连WIFI真机调试。
- [转]react native 真机调试appdelegate.m找不到ip地址的处理
- react native 真机调试appdelegate.m找不到ip地址的处理
- React Native 0.29 版本以后真机调试IOS项目的方法
- React Native的调试
- React-Native设置入口组件的问题,新手需注意
- java 从网络Url中下载文件
- css样式
- 利用Appium实现App自动化测试
- hashMap,hashTable,hashSet,TreeMap的区别
- SPFA算法
- react -native Android真机调试注意的问题
- angularJS年龄查找与性别查找
- 合并排序/归并排序(递归与分治)-算法设计与分析
- 【JavaScript】JavaScript同步、异步、回调的执行顺序
- 异常的继承范围
- I NEED A OFFER!
- 智能小车stm32(寻迹测速)
- 数组冒泡排序
- cs:app 学习笔记(3)metore