Skip to content

Android Studio freezes with flutter when changing files #4471

@jmagman

Description

@jmagman

Copied from @Elsrougy report at flutter/flutter#54222:

I had flutter with android studio for a while now and everything is working great until one day in any flutter project when I try to open any file android studio freezes for few minutes. For example, if I was in the main.dart file and then switched/opened another file the freezing occurs, and that happens in any file not just main. This freezing doesn't happen with normal android studio projects only with flutter

it's worth mentioning that in android studio plugins it always says can't load marketplace and to check the connection but I don't know when did that started and if it is related or not.

Also flutter analyze is taking a long time with no output. I tried reinstalling flutter, reinstalling android studio, reinstalling flutter (stable and beta), installing android studio beta instead of stable and nothing happened still the same problem

attached is idea.log and threadDumps-freeze that android studio generates.

flutter doctor -v output:
[√] Flutter (Channel stable, v1.12.13+hotfix.9, on Microsoft Windows [Version 10.0.18363.657], locale en-US)
    • Flutter version 1.12.13+hotfix.9 at E:\src\flutter
    • Framework revision f139b11009 (8 days ago), 2020-03-30 13:57:30 -0700
    • Engine revision af51afceb8
    • Dart version 2.7.2


[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at E:\Android
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.3
    • Java binary at: E:\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Android Studio (version 4.0)
    • Android Studio at E:\Android Studio
    • Flutter plugin version 45.0.2
    • Dart plugin version 193.6911.31
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

logs.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions