查看Android模拟器的实时日志
环境:
OS: windows 10
adb: 1.0.41
1. 下载ADB
https://dl.google.com/android/repository/platform-tools-latest-windows.zip
https://dl.google.com/android/repository/platform-tools-latest-linux.zip
https://dl.google.com/android/repository/platform-tools-latest-darwin.zip
如platform-tools_r34.0.1-windows.zip
2. 连接模拟器
常用模拟器的端口
雷电模拟器:5554
夜神模拟器端口号:62001
海马模拟器端口号:26944
逍遥模拟器端口号:21503
MuMu模拟器端口号:7555
天天模拟器端口号:6555
进行连接
adb connect 127.0.0.1:5554
adb常用命令
- 断开所有连接
adb kill-server - 列举已连接设备
adb devices - 连接设置
adb connect HOST[:PORT]
3. 查看实时日志
adb logcat
日志写入文件
adb logcat > a.log
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)