Android Studio 3.2 RC 3 is not working correctly with the Flutter plugin
See original GitHub issue@creativecreatorormaybenot commented on Tue Sep 11 2018
Everytime opening a Flutter project, no matter what I have tried, I will have to do either or multiple of the following things:
-
Reassign the
Flutter SDK path
: -
Enable Dart support for the project:
-
Sync project with Gradle Files.
Before that, the project view looks like this:
That means that I am unable to access any project directories (android
, ios
or lib
) because the Flutter plugin is not connected properly (until I fix it with the necessary steps described above).
This also disables all code analysis and completion features (if I open a file externally because I cannot access it from inside the workspace before enabling support and syncing) & the ability to run the application from within Android Studio.
I have tried
Reinstalling from the Android Studio Preview website and flutter upgrade
…
Doctor
flutter doctor -v
[√] Flutter (Channel master, v0.8.3-pre.28, on Microsoft Windows [Version 10.0], locale en-US)
• Flutter version 0.8.3-pre.28 at flutterRoot
• Framework revision 0e8103ff13 (4 hours ago), 2018-09-11 18:16:21 +0200
• Engine revision 9a173a8dc8
• Dart version 2.1.0-dev.4.0.flutter-ef72098353
[!] Android toolchain - develop for Android devices (Android SDK 28.0.2)
• Android SDK at sdkRoot
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.2
• Java binary at: javaRoot
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
X Android license status unknown.
[√] Android Studio (version 3.2)
• Android Studio at studioRoot
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:6 (4 by maintainers)
Top GitHub Comments
OK, thanks for the info. Unfortunately, I don’t have any easy solution. I think the quickest way for you to get going with RC3 would be to create a new Flutter project and copy your files from the old project to the new one. Not ALL files, just the ones needed to make your Flutter project. For example, don’t copy .idea, or any .* file unless you edited it (like .gitignore), or any *.iml file.
@stevemessick Apparently, I cannot create a project, which has the same name as the upper directory (
...\name\name
).Also, renaming the directory of a project created with the same name as its parent directory, i.e. e.g. renaming
...\name\name
into...\name\other
after creation does not solve the issue.Another strange thing: The project that suddenly (when I first issued this problem) encountered this does not show any project directories on start up (as described above), but if I create a
...\name\name
Flutter project now, it will recognize thename_android
project directory, however, not the base one.Still on Windows, but now using Android Studio 3.2.