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.

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:

  1. Reassign the Flutter SDK path:

  2. Enable Dart support for the project:

  3. 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
stevemessickcommented, Sep 12, 2018

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.

0reactions
creativecreatorormaybenotcommented, Sep 28, 2018

@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 the name_android project directory, however, not the base one.

Still on Windows, but now using Android Studio 3.2.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Known issues with Android Studio and Android Gradle Plugin
This section describes known issues that exist in the latest stable version of Android Studio ... Gradle file watching will not properly track...
Read more >
Minimum supported Gradle version is 3.3. Current version is ...
I am using Android studio IDE version 3.2 beta 2. Solution: When we open gradle-wrapper.properties file in IDE it shows correct distributionUrl.
Read more >
Android Studio 3.2 RC 2 now available
Android Studio 3.2 Release Candidate 2 (RC2) is now available in the Beta channel. This update includes some bug fixes and the following ......
Read more >
Linux install - Flutter documentation
Set up the Android emulator ... To prepare to run and test your Flutter app on the Android emulator, follow these steps: ......
Read more >
How to use ndkVersion in gradle - Google Groups
I do not know how to get the version of "the gradle plugin" that I am running independent of Android Studio.app. Re: ndk.dir...
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