Skip to content

"Android Studio has stopped working" after installing & launching flutter application in debug mode #99497

@bahman2000

Description

@bahman2000

Hello, I click to run application in debug mode. After installing & launching the application, a dialog is displayed immediately:

"Android Studio has stopped working
A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available."

The remarkable point is that when i click to run application in release mode, everything is ok and error dialog is not displayed!

Android Studio Vesrsion: 2021.1.1

Flutter Version: Flutter 2.10.2 channel stable

Flutter Doctor:

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.10.2, on Microsoft Windows [Version 6.3.9600], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[√] Chrome - develop for the web
[!] Visual Studio - develop for Windows (Visual Studio Build Tools 2019 16.11.9)
X Visual Studio is missing necessary components. Please re-run the Visual Studio installer for the "Desktop development with C++" workload, and include these

  components:
    MSVC v142 - VS 2019 C++ x64/x86 build tools
     - If there are multiple build tool versions available, install the latest
    C++ CMake tools for Windows
    Windows 10 SDK

[√] Android Studio (version 2021.1)
[√] Connected device (3 available)
[√] HTTP Host Availability

! Doctor found issues in 1 category.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: debuggingDebugging, breakpoints, expression evaluationd: intellijDevTools related - IntelliJ/flutter issues (most should be tracked in flutter/flutter-intellij)r: solvedIssue is closed as solvedtoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions