Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use Android Studio's Android Emulator normally under Ubuntu WSL #455

Open
1 task
linghengqian opened this issue Apr 6, 2024 · 0 comments
Open
1 task

Comments

@linghengqian
Copy link

cmd /c ver

Microsoft Windows [版本 10.0.22631.3374]

wsl --status

默认分发: Ubuntu-22.04
默认版本: 2

Did the problem occur during installation?

  • Yes

What happened?

  • Unable to use Android Studio's Android Emulator normally under Ubuntu WSL.
  • See the Steps to reproduce Comment section for detailed reproduction steps.

What was expected?

  • Normal use of Android Studio's Android Emulator under Ubuntu WSL.

Steps to reproduce

  • Execute the following command on the new Ubuntu 22.04 WSL.
sudo apt update && sudo apt upgrade -y

cd /tmp

# The main reason to install `microsoft-edge` is that `jetbrains-toolbox` requires a browser on the system to open the URL.
wget https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-stable/microsoft-edge-stable_122.0.2365.92-1_amd64.deb?brand=M102 -O ./microsoft-edge-stable.deb
sudo apt install --fix-missing ./microsoft-edge-stable.deb -y
# Open `microsoft-edge` and then close it. This is to enable the browser to hook into the URL.
microsoft-edge

sudo apt install libfuse2 libxi6 libxrender1 libxtst6 mesa-utils libfontconfig libgtk-3-bin tar -y
wget https://download-cdn.jetbrains.com/toolbox/jetbrains-toolbox-2.2.3.20090.tar.gz -O ./jetbrains-toolbox.tar.gz
tar -xzf ./jetbrains-toolbox.tar.gz
./jetbrains-toolbox-2.2.3.20090/jetbrains-toolbox --install
rm -rf /tmp/jetbrains-toolbox-2.2.3.20090/
  • At this time, open jetbrains-toolbox through ~/.local/share/JetBrains/Toolbox/bin/jetbrains-toolbox. and select Android Studio installation.
  • image
  • Click OK. Agree to Google's LICENSE and download the SDK.
  • image
  • image
  • image
  • Click Finish.
  • image
  • In the main interface of Android Studio, select Virtual Device Manager through More Actions.
  • image
  • Click Start to the right of Pixel_3a_API_34_extension_level_7_x86_64.
  • image
  • image
  • After a period of time, the virtual device is not started and no error is reported.
  • image
  • This seems like a big step forward from How to run Android Studio Emulator via WSL2 microsoft/WSL#6625 , but it's still a big bummer that you can't use virtual devices. I'm not sure where the problem lies.

Additional information

  • Null.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant