我认为有一种方法可以通过Wi-Fi测试开发中的应用程序。这可能吗?
我希望能够解开我的手机,无线开发。
我认为有一种方法可以通过Wi-Fi测试开发中的应用程序。这可能吗?
我希望能够解开我的手机,无线开发。
当前回答
这太简单了……
步骤1:
connect mobile to laptop (PC)
find adb path in Eclipse or Go Tast manager (<kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Esc</kbd>) -> process -> adb.exe -> right-click -> open file location -> copy the path of the open window (like D:\.....)
步骤2:
open cmd and change directory like C:, D:, E:, and G:
1: C:\Users\UMT>D:
2: D:\> cd (past path of adb) like (ANDROID eclipse\Eclipse Setup\adt-bundle-windows-x86_64-202\sdk\plat-form-tools) and press enter
3: Then type `adb tcpip 5555`. Press <kbd>Enter</kbd> ... make sure your mobile connects to the PC
步骤3:
Open new cmd and same above, go to the adb directory and type
adb connect 192.168.x.x(device ip):5555
press enter now connect it.
设备IP地址:设置中—>关于话机—>状态—> IP地址
其他回答
当你按照上面的答案https://stackoverflow.com/a/10236938/6117565,你可能会得到错误“没有路由到主机”。
要解决这个问题,在上述回答的第5步之前,首先启动模拟器,然后尝试连接设备。不知道发生了什么,但这个把戏奏效了。
对于安卓11手机和安卓工作室大黄蜂版本,有新的更新。你只需要从安卓手机上扫描二维码就可以了 繁荣!它是相连的。
节省复制粘贴过程的时间。 有用的官方文件在这里
对于Ubuntu / Linux:
Make sure your device is working for debugging: http://developer.android.com/tools/help/adb.html#Enabling Go to your sdk folder and find the folder platform-tools Use ./adb devices to list the connected devices. Make sure it is only one device connected and no emulator running. Find your device IP address, you can find it in your device: http://developer.android.com/tools/help/adb.html#wireless, or got adb shell like this: ./adb shell then netcfg. You will see a list of IP addresses. Find wlan0, in my case 192.168.100.3/2. ./adb tcpip 5555 Finally enter ./adb connect <Your device IP Address>:5555 in your terminal. You can now deploy the application to your device over Wi-Fi.
注意:-安卓手机必须是根,不需要usb线。
在android手机上安装wifi adb
链接:https: / / play.google.com/store/apps/details ? id = com.ttxapps.wifiadb
对于Windows
我用的是这个技巧,非常简单。
1)下载adb:
链接:https://www.dropbox.com/s/mcxw0yy3jvydupd/adb-setup-1.4.3.exe?dl=0
2)运行exe:—当你看到蓝屏时按y enter。
3)现在打开你的wifi adb apk,只需授予root权限,必须记住你的android手机和系统通过wifi或热点在同一个网络上。
4)打开Wifi adb apk,你会得到一些ip地址,比如adb connect 192.168.2.134:5555 注意这个ip可能非常不同于不同的系统,现在把这个信息放到命令提示符中,然后按Enter键。
5)在任意位置打开cmd,输入adb connect 192.168.2.134:5555。
6)最终您成功连接到adb。它会显示像这样的消息 连接到192.168.2.140:5555
对于Mac Os
这是最简单的方法,将提供自动更新。
1)安装自制程序
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2)安装亚行
brew cask install android-platform-tools
3)开始使用adb
adb devices
4)打开Wifi adb apk,你会得到一些ip地址,比如,adb connect 192.168.2.134:5555注意这个ip可能很从系统到系统,现在把这个信息输入到你的终端并按Enter。
5)在mac os中任意打开终端,输入adb connect 192.168.2.134:5555。
6)最终您成功连接到adb。它将显示类似于已连接到192.168.2.140:5555的消息
希望对你有所帮助,谢谢!
android无线调试(MAC)
步骤1:进入sdk文件夹(常用路径“/Users/macname/Library/Android/sdk/platform-tools”) 打开CMD,运行"adb devices" output -附加设备列表
如果在CMD类型中没有找到adb命令 。/亚洲开发银行——的帮助 OS X / macOS:典型的~/。Profile或~/.bash_profile 在这里添加以下一行,并将其替换为安装platform-tools的路径:
步骤2: $PATH ="/Users/macname/Library/Android/sdk/platform-tools"
步骤3: $ adb设备 所附设备清单 ZH99FF7FTY设备
步骤4: $ adb tcpip 5555 以TCP模式重新启动端口:5555
步骤5: $ adb connect 10.124.32.18:5555 已连接到10.124.32.18:5555
下次重复步骤4和5重新连接 或者如果设备重新启动但没有连接,请再次执行步骤 祝你好运