skip to Main Content

I updated my Android Studio to Android Studio Giraffe with new UI then my all Flutter projects’ syntax highlighting and context menu suggestions stopped working.

enter image description here

I tried the following steps.

  1. Restart Android Studio
  2. Re-associate the file with Dart type (go to the menu bar >> File >> File Properties >> Associate with File Type…)
  3. Restart my laptop

But none of this helped me.

2

Answers


  1. Chosen as BEST ANSWER

    Finally after searching a lot of web pages, I got the solution as follows.

    1. Go to Plugins
    2. Uninstall Flutter then Dart Plugin (remember, uninstall, not disable)
    3. Restart Android Studio
    4. Install Dart then Flutter Plugin again
    5. Restart Android Studio

    And all is done and back again.


  2. Probably a rare occurrence, but changing the Kotlin Compiler version to bundled fixed it for me. I was getting an error Failed to download Kotlin Compiler Maven artifact and the syntax highlight wasn’t working. Changing Kotlin Compiler to bundled version fixed the highlight.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search