Unable to use Android device as target

I followed the instructions here and did the following

  • Installed the Android dmengine app on my Android device
  • Connected to the device with a USB cable
  • Verified that the device is listed in adb devices
  • Verified that the device is visible in my chrome://inspect tab
  • Started up dmengine on the device
  • this shows “Waiting for connection” and “Listening on interface” 192.168.178.44
  • In Defold on Windows navigated to Project -> Target but only one target, New Local Engine is available
  • Tried to enter the IP address above manually - only to be told that Defold cannot the target IP cannot be reached
  • Restarted Defold and tried again, just in case…

What am I doing wrong?

Looks like it should work. Just to make sure, is the device and computer connected to the same network? Sometimes it helps to switch off then on the wifi network on the computer I find.

Did you put the device in USB tethering mode?

2 Likes

USB thethering was off. Switching it on did the trick. However, a cabled connection is a bit of a pain. When working with Flutter I usually do

adb tcpip 7777  (or similar)
adb connect device_internal_ip:7777

and then work without the usb cable. Can something similar be done here with Defold?

It should work to connect over wifi as well. Make sure your computer and the phone is on the same wifi. The phone should show as a target when you start dmengine on your phone.

2 Likes