Autocomplete does not work in Android Studio
See original GitHub issueSteps to Reproduce
Please tell us what you were doing and what went wrong
- Create a new flutter project
- Create
src
folder inlib
withbaz.dart
andfoo.dart
files - Add this to
foo.dart
:class Foo {}
- Start typing in
baz.dart
:class Bar extends Fo
Android Studio does not have autocomplete:
Visual Studio Code does have:
IntelliJ Ultimate also does:
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:
- Created 4 years ago
- Reactions:2
- Comments:19 (2 by maintainers)
Top GitHub Comments
Is autocomplete available in Android Studio now?
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.