Run/install/debug Android applications over Wi-Fi?

前端 未结 30 1638
[愿得一人]
[愿得一人] 2020-11-22 07:16

I thought there was a way to test your applications in development over Wi-Fi. Is this possible?

I\'d love to be able to untether my phone and develop wirelessly.

相关标签:
30条回答
  • 2020-11-22 07:58
    >##    open command prompt with Run as Administrtor ##
    
        adb connect ipdevice:5037
    
    0 讨论(0)
  • 2020-11-22 07:58

    Radu Simionescu's answer worked for me. Thank you. For those who are unable to see the ip address of their android device, go to Settings > Wireless > Wi-Fi and then long press the wifi which you are connected to. Then select Modify network config check on Show Advance Options and the scroll to IP address section.

    After installing adb in your system, do run killadd adb and adb start-server to refresh adb. Sometimes we could get issues like here

    0 讨论(0)
  • 2020-11-22 07:59

    For all , this , there exists a better method (EASIEST METHOD) :

    1 ) A plugin for Android studio exits , called Android wifi ADB

    2) Go to file -> settings -> Plugins -> Browse Repositories

    3) Look for Android WiFi ADB , click on INSTALL , and then restart on prompt

    4) You will see a new icon , which is your new plugin .

    Now to make this work :

    5) Go to your phone's developer option and enable DEBUGGING (must)

    6) Also enable , ALLOW DEBUG OVER TCP/NETWORK

    7) Attach your phone via USB , and make sure , both phone and your pc/laptop are connected to the same network (either hotspot or wifi)

    8) CLICK ON THE NEW ICON (ie your ANDROID Wifi ABD)

    9) Your phone get's detected and get's connected over wifi/hotspot , and hence now you may disconnect the usb . This is a one time process , hence you may not need to keep phone connected over usb .

    This will save your phone from irregular charges and also , a remedy for short length usb cables .

    0 讨论(0)
  • 2020-11-22 07:59

    Note :- Android Phone must be rooted and no need of usb cable.

    Install wifi adb in android phone from playstore

    link :-https://play.google.com/store/apps/details?id=com.ttxapps.wifiadb

    For Windows

    I am using this technique , which is very easy.

    1) download adb :

    link : https://www.dropbox.com/s/mcxw0yy3jvydupd/adb-setup-1.4.3.exe?dl=0

    2) Run exe :- when you see blue screen press y enter .

    3) Now open your wifi adb apk , just grant root permission and must be remember you android phone and system on the same network by wifi or hotspot .

    4) Open Wifi adb apk , you will get some ip address like , adb connect 192.168.2.134:5555 Note this ip may be very from system to system , now put this information to your command prompt and hit Enter .

    5) Open cmd from anywhere enter adb connect 192.168.2.134:5555 .

    6) Finally you successfully connected to adb . it will show message like connected to 192.168.2.140:5555

    For Mac Os

    This is the easiest way and will provide automatic updates.

    1)Install homebrew

    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    

    2)Install adb

    brew cask install android-platform-tools
    

    3)Start using adb

    adb devices
    

    4) Open Wifi adb apk , you will get some ip address like , adb connect 192.168.2.134:5555 Note this ip may be very from system to system , now put this information to your terminal and hit Enter .

    5) Open terminal in mac os from anywhere enter adb connect 192.168.2.134:5555 .

    6) Finally you successfully connected to adb . it will show message like connected to 192.168.2.140:5555

    I hope its help you ,Thank You !

    0 讨论(0)
  • 2020-11-22 07:59

    android Wireless Debugging (MAC)

    step 1: go to sdk folder (common path "/Users/macname/Library/Android/sdk/platform-tools") open cmd here run "adb devices" output - List of devices attached

    if adb command not found in cmd type ./adb --help OS X / macOS: typically ~/.profile or ~/.bash_profile Add the following line there and replace the path with the one where you installed platform-tools:

    step 2: $ export PATH="/Users/macname/Library/Android/sdk/platform-tools":$PATH

    step 3: $ adb devices List of devices attached ZH99FF7FTY device

    step 4: $ adb tcpip 5555 restarting in TCP mode port: 5555

    step 5: $ adb connect 10.124.32.18:5555 connected to 10.124.32.18:5555

    Next Time repeat step 4 and 5 to reconnect Or if Device reboot and not connect follow step again BEST OF LUCK

    0 讨论(0)
  • 2020-11-22 08:00

    (No root required) There is one best, easy and with UI method for Android Studio

    IntelliJ and Android Studio plugin created to quickly connect your Android device over WiFi to install, run and debug your applications without a USB connected. Press one button and forget about your USB cable.

    just install plugin Android WiFi ADB

    Download and install Android WiFi ADB directly from

    Intellij / Android Studio: Preferences/Settings->Plugins->Browse Repositories

    .

    Remember! for first time to initialize the device you must have to connect using usb

    Alternatively, you can download the plugin from the JetBrains plugin site and install it manually in: Preferences/Settings->Plugins->Install plugin from disk.

    You can connect and manage your devices easily....... for more information read here https://github.com/pedrovgs/AndroidWiFiADB

    0 讨论(0)
提交回复
热议问题