flutter / flutter/flutter-intellij

Illegal State Exception: early Disposable was already disposed when opening Flutter project

Open
#8,313 0 comments 0 reactions 0 assignees View on GitHub
P2 topic-getting-started
Dominant language
Java
Stars
2k
Forks
356
Avg merge
1d 11h
Merged PRs (30d)
27

Description

## What happened

While opening an existing Flutter project located at `E:\vknowyn`, Android Studio threw an exception and failed to retrieve Flutter SDK information.

The project did not load properly. This happened right after selecting `File > Open` and choosing the project directory.

## Version information

- Android Studio: Meerkat | 2024.3.1 Patch 2
- Flutter plugin: io.flutter 85.3.1
- Dart plugin: 243.26753.1
- Flutter SDK: (Unknown, unable to fetch due to exception)
- OS: Windows 10/11

## Steps to Reproduce

1. Open Android Studio
2. Go to `File > Open`
3. Choose a Flutter project directory (in this case: `E:\vknowyn`)
4. Wait while the project loads
5. The error appears and the Flutter SDK can't be detected

## Exception

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure while opening an existing Flutter project from File > Open on Windows, using the versions and project path reported in the issue. Investigate why Flutter SDK information cannot be retrieved after the early Disposable exception; done means the project opens and the Flutter SDK is detected without the exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, dart, flutter, java
Domain
mobile-dev, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.