flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
165.74k stars 27.37k forks source link

Problem to start emulator #91387

Closed ghost closed 3 years ago

ghost commented 3 years ago

Steps to Reproduce

  1. run flutter emulators --launch flutter_emulator on WSL2

Logs

Logs ``` The Android emulator exited with code -6 during startup Android emulator stderr: 2021-10-06 20:00:03.525 bluetooth - /buildbot/src/android/emu-master-dev/system/bt/vendor_libs/test_vendor_lib/model/setup/device_ boutique.cc:33 - Register: Registering beacon_swarm 2021-10-06 20:00:03.525 bluetooth - /buildbot/src/android/emu-master-dev/system/bt/vendor_libs/test_vendor_lib/model/setup/device_ boutique.cc:33 - Register: Registering beacon 2021-10-06 20:00:03.525 bluetooth - /buildbot/src/android/emu-master-dev/system/bt/vendor_libs/test_vendor_lib/model/setup/device_ boutique.cc:33 - Register: Registering scripted_beacon 2021-10-06 20:00:03.525 bluetooth - /buildbot/src/android/emu-master-dev/system/bt/vendor_libs/test_vendor_lib/model/setup/device_ boutique.cc:33 - Register: Registering remote_loopback 2021-10-06 20:00:03.525 bluetooth - /buildbot/src/android/emu-master-dev/system/bt/vendor_libs/test_vendor_lib/model/setup/device_ boutique.cc:33 - Register: Registering car_kit 2021-10-06 20:00:03.525 bluetooth - /buildbot/src/android/emu-master-dev/system/bt/vendor_libs/test_vendor_lib/model/setup/device_ boutique.cc:33 - Register: Registering classic 2021-10-06 20:00:03.525 bluetooth - /buildbot/src/android/emu-master-dev/system/bt/vendor_libs/test_vendor_lib/model/setup/device_ boutique.cc:33 - Register: Registering sniffer 2021-10-06 20:00:03.525 bluetooth - /buildbot/src/android/emu-master-dev/system/bt/vendor_libs/test_vendor_lib/model/setup/device_ boutique.cc:33 - Register: Registering keyboard handleCpuAcceleration: feature check for hvf Fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: xcb. ((null):0, (null)) Address these issues and try again. ``` ``` [✓] Flutter (Channel stable, 2.5.2, on Ubuntu 20.04 LTS 5.10.16.3-microsoft-standard-WSL2, locale C.UTF-8) • Flutter version 2.5.2 at /home/tiago/snap/flutter/common/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 3595343e20 (6 days ago), 2021-09-30 12:58:18 -0700 • Engine revision 6ac856380f • Dart version 2.14.3 [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3) • Android SDK at /home/tiago/Applications/android/ • Platform android-30, build-tools 30.0.3 • Java binary at: /usr/bin/java • Java version OpenJDK Runtime Environment (build 16.0.1+9-Ubuntu-120.04) • All Android licenses accepted. [✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome) ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable. [!] Android Studio (not installed) • Android Studio not found; download from https://developer.android.com/studio/index.html (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions). [!] Connected device ! No devices available ! Doctor found issues in 3 categories. ```
darshankawar commented 3 years ago

@tiagodinis33 Have you already tried on WSL1 or WSL and if so, do you get same result ? If not tried, is there a way for you to try on previous versions (ie, WSL1 and WSL) and see what do you get ?

Regarding WSL2, please check out this open issue for your reference, https://github.com/flutter/flutter/issues/42521

ghost commented 3 years ago

i just gave up using WSL for flutter, i installed on windows now, much easier

github-actions[bot] commented 3 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.