Flutter Setup
Install flutter in WSL
https://docs.flutter.dev/get-started/install/linux
sudo snap install flutter --classicflutter sdk-path
Check FLutter install status
flutter doctorInstall Android Studio in WSL
Install android studio linux tar gz file

Install using snap
install java if needed
sudo apt install openjdk-18-jdk
sudo snap install android-studio --classiccheck android studio status
snap list android-studioadd andriod sdk path to flutter
flutter config --android-sdk ~/Android/Sdk/Manually download and install
go into usr/local and unzip the tar gz file
cd /usr/local/
tar xf ~/Downloads/android-studio-version-number-linux.tar.gzRestart the computer
Restart the computer
wsl --update
wsl --shutdownRunning Android Studio
android-studiocd /usr/local/
android-studio/bin/studio.shOpen Android Studio -> More Actions -> SDK manager -> SDK Tools -> Android SDK Command line

Configure Android
Start Android Studio.
The Welcome to Android Studio dialog displays.
Follow the Android Studio Setup Wizard.
Install the following components:
Android SDK Platform, API 33.0.0
Android SDK Command-line Tools
Android SDK Build-Tools
Android SDK Platform-Tools
Android Emulator
To fix android licencing
flutter doctor --android-licensesInstall Xming
Needed to render graphic applications
sudo apt update
sudo apt install x11-apps -y
xeyesInstall Chrome
sudo apt install -y chromium-browserConnect Phone
Enable Developer options
Settings -> About phone -> Software Information -> Build Number
USB debugging
Settings -> Developer Options -> USB debugging && Wireless debugging
Connect Phone to Flutter in WSL
Install adb in windows
add path to windows environment path variable
C:\Users\bthek\OneDrive\Documents\platform-toolsCheck for device connected
adb devices
Try restarting adb if device doesn’t show up
adb kill-server
adb start-server
Once your device is connected via USB, run the following command to map the desired port to adb.
adb tcpip 5555Go to wsl and run
adb connnect <ip>:<port>Example:
adb connect 192.168.1.4:5555