question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Autocomplete does not work in Android Studio

See original GitHub issue

Steps to Reproduce

Please tell us what you were doing and what went wrong

  • Create a new flutter project
  • Create src folder in lib with baz.dart and foo.dart files
  • Add this to foo.dart: class Foo {}
  • Start typing in baz.dart: class Bar extends Fo

Android Studio does not have autocomplete:

android_studio

Visual Studio Code does have:

visual_studio_code

IntelliJ Ultimate also does:

intellij

Version info

Please paste the output of running flutter doctor -v here (available from the command line or from Tools > Flutter > Flutter Doctor). It will provide the version of the Flutter framework as well as of the IntelliJ plugin.

[√] Flutter (Channel dev, v1.5.8, on Microsoft Windows [Version 10.0.17763.475], locale en-US)
    • Flutter version 1.5.8 at C:\Users\Meee3\Documents\flutter_v1.2.1_stable\flutter
    • Framework revision 0ba67226ee (11 days ago), 2019-04-24 17:18:28 -0700
    • Engine revision c63d1cf9c9
    • Dart version 2.3.0 (build 2.3.0-dev.0.1 1f1592edce)


[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at C:\Users\Meee3\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: C:\Users\Meee3\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\183.5452501\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
    • All Android licenses accepted.

[√] Android Studio (version 3.4)
    • Android Studio at C:\Users\Meee3\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\183.5452501
    • Flutter plugin version 35.2.1
    • Dart plugin version 183.6270
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[√] IntelliJ IDEA Ultimate Edition (version 2019.1)
    • IntelliJ at C:\Users\Meee3\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\191.6707.61
    • Flutter plugin version 35.2.3
    • Dart plugin version 191.7019

[√] VS Code (version 1.33.1)
    • VS Code at C:\Users\Meee3\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 2.26.1

[!] Connected device
    ! No devices available

! Doctor found issues in 1 category.

If I switch back to the stable channel, there is no difference in autocomplete.

Checking Dart SDK version...
Downloading Dart SDK from Flutter engine 3757390fa4b00d2d261bfdf5182d2e87c9113ff9...
Unzipping Dart SDK...
Building flutter tool...
Running pub upgrade...
[√] Flutter (Channel stable, v1.2.1, on Microsoft Windows [Version 10.0.17763.475], locale en-US)
    • Flutter version 1.2.1 at C:\Users\Meee3\Documents\flutter_v1.2.1_stable\flutter
    • Framework revision 8661d8aecd (3 months ago), 2019-02-14 19:19:53 -0800
    • Engine revision 3757390fa4
    • Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)

[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at C:\Users\Meee3\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: C:\Users\Meee3\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\183.5452501\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
    • All Android licenses accepted.

[√] Android Studio (version 3.4)
    • Android Studio at C:\Users\Meee3\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\183.5452501
    • Flutter plugin version 35.2.1
    • Dart plugin version 183.6270
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[√] IntelliJ IDEA Ultimate Edition (version 2019.1)
    • IntelliJ at C:\Users\Meee3\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\191.6707.61
    • Flutter plugin version 35.2.3
    • Dart plugin version 191.7019

[√] VS Code (version 1.33.1)
    • VS Code at C:\Users\Meee3\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 2.26.1

[!] Connected device
    ! No devices available

! Doctor found issues in 1 category.

As a note:

I of course do not need Android Studio and IntelliJ at the same time, I just spent too much time trying to establish autocomplete in Android Studio that I have downloaded everything possible and could not imagine there was a difference between any IDEs, let alone IntelliJ and Android Studio.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:19 (2 by maintainers)

github_iconTop GitHub Comments

16reactions
akshanandacommented, Jul 25, 2019

Is autocomplete available in Android Studio now?

12reactions
carochaocommented, Mar 3, 2020

Yes, it is, if the autocomplete isn’t working for you in Android Studio, just press File and uncheck the Power save mode, it should work fine after that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Code suggestion not working in android studio - YouTube
Code#completion#suggestion# not # working #AndroidStudioautocomplete code in android studioandroid studio - auto complete and other features not ...
Read more >
Auto complete code not working in Android Studio - YouTube
AndroidStudio # Autocomplete #features#notworkingSupport me here PayPal https://www.paypal.me/sanjeet47 suggestions not working android ...
Read more >
AutoCompleteTextView - Android Developers
android :ellipsize, If set, causes words that are longer than the view is wide to be ellipsized instead of broken in the middle....
Read more >
autocomplete not working in xml layouts [240601092]
As you see suggestion is not working. Whats wrong with Android Studio? I attached only last part of logs of IDE. Android Studio...
Read more >
Auto complete text view in android studio - YouTube
Hello everyone in this video we are going to learn how to create auto complete text view / edit text in android studioWatch...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found