Skip to content

Unable to start flutter web app from within Android Studio IDE #7270

@bftigertms

Description

@bftigertms

Steps to Reproduce

Create the default sample Flutter app (counter) with Android and Web support.
The project runs fine via the Android Studio IDE "Run" or "Debug" options (attached to main.dart) when the target is an Android virtual device.
However, when clicking on Android Studio IDE's "Run" or "Debug" options with the target device as "Chrome (web)", the browser appears with "Aw Snap" (with error code: STATUS_STACK_BUFFER_OVERRUN).

The same project can be opened in VS Code, and launches from the IDE Run/Debug option (to chrome again) with no problems.

Version info

[√] Flutter (Channel stable, 3.19.3, on Microsoft Windows [Version 10.0.22631.3155], locale en-GB)
• Flutter version 3.19.3 on channel stable at C:\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision ba39319843 (6 days ago), 2024-03-07 15:22:21 -0600
• Engine revision 2e4ba9c6fb
• Dart version 3.3.1
• DevTools version 2.31.1

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at C:\Android\Sdk
• Platform android-34, build-tools 34.0.0
• ANDROID_HOME = C:\Android\Sdk
• Java binary at: C:\Android\AndroidStudio\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 17.0.9+0--11185874)
• All Android licenses accepted.

[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.9.2)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.9.34622.214
• Windows 10 SDK version 10.0.22621.0

[√] Android Studio (version 2023.2)
• Android Studio at C:\Android\AndroidStudio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
NOTE: Plugin version 78.2.2 is installed
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
NOTE: Plugin version 232.10305 is installed
• Java version OpenJDK Runtime Environment (build 17.0.9+0--11185874)

[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22631.3155]
• Chrome (web) • chrome • web-javascript • Google Chrome 122.0.6261.112
• Edge (web) • edge • web-javascript • Microsoft Edge 122.0.2365.80

[√] Network resources
• All expected network resources are available.

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions