- On the client:
- The device and the devcontainer must be connected to the same network.
- Connect the device to the computer via USB, or use an Android emulator.
adb devices
adb -s {device name} tcpip 5555
- On the Devcontainer:
- If using an Android emulator:
- Run
ssh -L 5555:127.0.0.1:5555 {user id}@{computer ip}
- Open a new terminal to proceed
- In this case,
{device IP}
will be127.0.0.1
- Run
adb connect {device IP}:5555
adb devices
flutter run
- If using an Android emulator:
flutter run -d web-server --web-port=3000
- Open the browser and go to
http://localhost:3000
- Change
FLUTTER_SDK_VERSION
inDockerfile
to your desired Flutter version