Skip to content
New issue

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

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

Already on GitHub? # to your account

Flutter 3.29 is super slow on Android Studio #7987

Closed
changja88 opened this issue Apr 1, 2025 · 4 comments
Closed

Flutter 3.29 is super slow on Android Studio #7987

changja88 opened this issue Apr 1, 2025 · 4 comments

Comments

@changja88
Copy link

Steps to reproduce

Until Flutter version 3.27, Android Studio was usable, but versions 3.29 and above are too slow. In particular, autocomplete and the options triggered by Alt + Enter are so slow that they are practically unusable. Also, the wrap + widget feature sometimes works depending on some unknown criteria, but mostly it does not. I can't believe that Android Studio, the official editor for Flutter development, is at this level.

Actual results

FAST!!!!

Logs

Logs
<!-- Paste your logs here -->

Flutter Doctor output

Doctor output
<!-- Paste your output here -->
@danagbemava-nc danagbemava-nc transferred this issue from flutter/flutter Apr 1, 2025
@NaikSoftware
Copy link

Faced same issue. Tried to optimize analysis options but without big results

@pq
Copy link
Contributor

pq commented Apr 8, 2025

You may be hitting an issue that we've identified in the analysis server.

See this bug for more details: dart-lang/sdk#60335

(The good news is we've got a fix on the way.)

@pq pq added the question label Apr 9, 2025
@lemonderon
Copy link

lemonderon commented Apr 9, 2025

I've also encountered an issue where the Dart analyzer fails to index certain .dart files without any apparent reason. This typically occurs in larger projects and significantly impacts my productivity in Android Studio. Restarting the IDE (not the Dart Analysis Server) usually resolves the problem, but not at all times. Sometimes I need to rename file and repaste its content, yet it is not reliable. I've tried numerous AS versions including the recent Canary ones and the issue is present within all of them.

On dart version prev 3.27 everything worked quite fine (except for sometimes IDE indexing file partially).

Interestingly, while VSCode exhibits slowness, it doesn't completely fail to analyze files or highlight syntax like Android Studio does. The Dart Analysis server output in Android Studio indicates that file analysis completes successfully (all of the expected issues highlighted in Description/Location rows are present), suggesting the issue likely lies with the IDE or Dart plugin integration rather than the analyzer itself.

@pq
Copy link
Contributor

pq commented Apr 9, 2025

Interesting, thanks! Let's take the continued conversation over to dart-lang/sdk#60335 since the fix is likely to happen on the server/analyzer side.

@pq pq closed this as completed Apr 9, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

5 participants