Android开发,使用Wifi调试真机
来源:互联网 发布:linux 添加自定义命令 编辑:程序博客网 时间:2024/06/01 08:13
Android开发,使用Wifi调试真机
原文:google官方文档说明
- 首先还是用USB线连接手机,然后找到Android SDK的playform-tools目录,在此通过命令行运行: adb tcpip 5555。在UBUNTU系统中,会返回“restarting in TCP mode port:5555”。
接下来,设置手机连接wifi,最好与PC是同一网段,不同网段没试过。然后,找到手机的IP,比如我的是192.168.0.142。(什么?不知道在哪里看手机IP?设置->Wi-Fi。。。。。。)
命令行中输入: adb connect 192.168.0.142:5555如果返回”connected to 192.168.0.142:5555”,恭喜你,现在可以拔掉USB线,然后,在SDK中就可以无线安装APK以及看LOGCAT的信息啦。
注意:使用Wifi调试速度会比较慢,但如果你使用的是Eclipse开发Android的话,这样是不容易掉线的。- 如果要退出无线模式,输入adb usb.
输入adb shell 时 提示error: more than one device and emulator
第一种情况:确实用多个设备或者模拟器
解决办法 :(指定连接某一个设备或者模拟器)
解决办法:
一般办法:在命令窗口输入adb start-server 重新启动adb.exe服务
如果上述方法不可以,终极方法:打开任务栏,选择“进程”选项卡,找到adb.exe进程,结束之,重新启动就完事OK啦(或者在命令窗口输入命令adb kill-server )
1、获取模拟器/设备列表
adb devices
2、指定device来执行adb shell
adb -s devicename shell
例如:
adb -s emulator-5554 shell
在多device的时候,执行adb命令一般都需要用参数-s指定device。例如卸载emulator-5554上的包com.soft.camera adb -s emulator-5554 uninstall com.soft.camera
阅读全文
0 0
- Android开发,使用Wifi调试真机
- Android开发,使用Wifi调试真机
- Android开发,使用Wifi调试真机
- WIFI无线调试android真机开发
- Android Studio使用WiFi进行真机调试
- [Android] android通过wifi真机调试
- AS使用wifi调试真机
- Android真机调试小技巧:使用WIFI连接调试(终于可以摆脱数据线了)
- android开发真机调试
- Android开发--真机调试
- Android开发真机调试-告别数据线-使用无线真机调试
- android开发,关于工程无法使用真机调试。
- android studio 用WiFi 真机 调试 测试
- Android Studio &Eclipse adb wifi 真机调试
- android开发实现真机调试
- ubuntu android开发真机调试
- android开发:调用真机调试
- android 开发 真机调试小问题
- 分布式需要注意的问题和解决办法
- Android自定义View(一、初体验自定义TextView)
- 常见部分排序
- jQuery插件——imgbox(点击图片查看大图)
- Intel RealSense(实感技术)概览
- Android开发,使用Wifi调试真机
- javascript 删除 url 中指定参数,并返回 url
- 获取iOS应用当前版本宏定义
- iOS中的.gitignore文件
- dagger学习
- sqoop
- asp加密
- Linux(五)
- Opencv 曲线拟合圆