Skip to content

android studio do not highlight the flutter`s classes. #3083

Open
@zoechi

Description

@zoechi

@winner484 commented on Sat Dec 22 2018

Image

this is a demo from flutter doc.
but my android studio can not highlight the flutter`s class. what i get is down below.

Image

How can i do to highlight the flutter`s classes? thank you!


@zoechi commented on Sat Dec 22 2018

You shouldn't need to do anything.

Have you tried restarting Android Studio?
Have you tried creating a new project using flutter create foo and check if it happens there as well?

Please add the output of flutter doctor -v.


@winner484 commented on Sun Dec 23 2018

You shouldn't need to do anything.

Have you tried restarting Android Studio?
Have you tried creating a new project using flutter create foo and check if it happens there as well?

Please add the output of flutter doctor -v.

yes, tried restarting AS, tried using IJ, tried creating new project. flutter doctor -v looks good.


@zoechi commented on Sun Dec 23 2018

flutter doctor -v looks good.

is the least relevant part of the output

Please add the output of flutter doctor -v.


@AlexeyPoldeo commented on Tue Jan 15 2019

Does not work for me as well

[✓] Flutter (Channel stable, v1.0.0, on Mac OS X 10.14.2 18C54, locale en-BY)
    • Flutter version 1.0.0 at /Users/a/flutter
    • Framework revision 5391447fae (7 weeks ago), 2018-11-29 19:41:26 -0800
    • Engine revision 7375a0f414
    • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[!] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at /Users/a/Library/Android/sdk
    • Android NDK at /Users/a/Library/Android/sdk/ndk-bundle
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    ✗ Android license status unknown.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    • ios-deploy 1.9.4
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 31.3.3
    • Dart plugin version 182.5124
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

[!] IntelliJ IDEA Ultimate Edition (version 2018.2.5)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.io/intellij-setup/#installing-the-plugins

[!] IntelliJ IDEA Community Edition (version 2018.2.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.io/intellij-setup/#installing-the-plugins

@zoechi commented on Tue Jan 15 2019

Try deleting ~/.dartServer/.analysis-driver/


@AlexeyPoldeo commented on Tue Jan 15 2019

No effect - still no highlighting

screen shot 2019-01-15 at 09 44 27


@AlexeyPoldeo commented on Tue Jan 15 2019

What does it mean? I've just provided more details.


@zoechi commented on Tue Jan 15 2019

@AlexeyPoldeo no worries, just a bit an overzealous bot. The bot only considers responses of the original issue author.

Have you tried restarting the IDE or perhaps even the machine?


@AlexeyPoldeo commented on Tue Jan 15 2019

Just restarted my mac - still does not work.

I've installed plugin on Android Studio and IntelliJ IDEA (both are recent version), it does highlight on both places.


@AlexeyPoldeo commented on Tue Jan 15 2019

I can type and autocompletion works fine, including Flutter classes.
Outline works.

screen shot 2019-01-15 at 10 06 18

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions