flutter_dev icon indicating copy to clipboard operation
flutter_dev copied to clipboard

Thanks! and a possible update?

Open SvenDowideit opened this issue 5 years ago • 2 comments

heya! thank you for your blog and repo

I've been tinkering with it, and was having udev issues

then I remembered ... i can debug & run over wifi

so on my host computer, I do the

adb tcpip 5555
adb connect xxx.xxx.xxx.xxx:5555 // IP address of your device xxx.xxx.xxx.xxx:5555

commands, and from there flutter run works without needing to deal with usb

SvenDowideit avatar May 21 '20 04:05 SvenDowideit

Hi,

Thanks for posting this update! I've tested your solution but I had some connectivity issues. Sometimes I wasn't able to connect to my Android device over WiFi. Eventually, when I managed to establish the connection I can't run my project with flutter run (no devices was detected). However, I kept trying and I ended up with this set of instructions which allows me to install Flutter apps over WiFi:

  1. From your host machine:
  • install adb tool (more info here link),
  • connect your device via USB,
  • from console, type: adb tcpip 5555,
  • then: adb connect xxxx.xxxx.xxxx.xxxx:5555 (xxxx.xxxx.xxxx.xxxx is an IP address of your Android device),
  • if the connection is successfully established then you can unplug your device and move to the next point, otherwise some errors occurred. Sometimes it is helpfull to issue adb tcpip 5555 command twice or change port number (from 5555 to something else that is not used).
  1. From container terminal type the following commands:
  • cd ~/Android/Sdk/platform-tools,
  • ./adb tcpip 5555 5555 is a port number so type the same that you used in the host machine
  • ./adb connect xxxx.xxxx.xxxx.xxxx:5555 xxxx.xxxx.xxxx.xxxx is an IP address of your Android device.

Maybe I'm missing something and it can be done in an easier way but I wasn't managed to.

cezaryzelisko avatar May 25 '20 10:05 cezaryzelisko

awesome! Hopefully i'll get back to this project this week :)

SvenDowideit avatar Jun 08 '20 07:06 SvenDowideit