New projects are being created incomplete
See original GitHub issueSo, here’s what happens when I create a new project with this wizard:
I get this:
and this notification:
So here are the issues so far:
-
Why do I have to configure the Android Framework after the project was created? Shouldn’t this be automatic or questioned at the Wizard?
-
Why there’s no Dart framework detected and I have to dig into the Flutter SDK files to find it?
-
Just take a look at the Flutter logo on the Root of the project, as soon as I configure the Android Framework, it’s gone (to be seen soon).
So, lets continue then.
I will add the Dart SDK, this is what I have now:
This is what I get after searching inside the Flutter SDK folders for a while:
Which is curious, because it says I am using Dart version 2.2.0, but flutter --version
says I am using Dart 2.1.2, so I guess I have no clue where to find the actual Dart SDK then.
Then I click to add the Android Framework that was automatically detected and this pops up:
And now the Flutter logo on the Root on my project is gone! Why?
This is my module settings with the Android Framework configured:
All looks good…But, this is the project configuration:
Which shows no SDK for the project.
(one time I had this out
folder vanish in another project and I had to add it again to the project’s configuration).
So, if I start an Android Emulator and try to run it like this, I get this error:
Launching lib\main.dart on Android SDK built for x86 64 in debug mode… Initializing gradle… CreateProcessW failed 193 Finished with error: ProcessException: %1 is not a valid Win32 application.
Command: C:\Users\Michel Feinstein\Desktop\newProjectTest\new_project_test\android\gradlew.bat -v
Which I had to google to find out that this is what you get when there’s a space in your project’s path (maybe add a hint when this error occurs, like hey do you have an space on your path?
or warn users when there’s a space in their path, or just make it work with spaces?).
And then it compiles, installs and works.
So, this is my experience when I create a new Flutter project in IntelliJ IDEA, I think there’s a lot of room for improvement.
This is my flutter doctor -v
:
[√] Flutter (Channel stable, v1.2.1, on Microsoft Windows [Version 10.0.17763.379], locale pt-BR) • Flutter version 1.2.1 at C:\Programacao\Flutter\sdk\flutter • Framework revision 8661d8aecd (5 weeks 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:\Programacao\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:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01) • All Android licenses accepted.
[√] Android Studio (version 3.3) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin version 33.4.1 • Dart plugin version 182.5215 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
[!] IntelliJ IDEA Ultimate Edition (version 2018.2) • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2018.1.5 X Flutter plugin not installed; this adds Flutter specific functionality. X 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 Ultimate Edition (version 2018.3) • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2018.3 • Flutter plugin version 33.4.2 • Dart plugin version 183.5912.23
[√] VS Code (version 1.32.1) • VS Code at C:\Users\Michel Feinstein\AppData\Local\Programs\Microsoft VS Code • Flutter extension version 2.24.0
[!] Connected device ! No devices available
! Doctor found issues in 2 categories.
Let me know if you need more information to fix this.
Issue Analytics
- State:
- Created 5 years ago
- Comments:19 (4 by maintainers)
Top GitHub Comments
I do ignore it indeed and don’t mind otherwise, but it is one of the small quirks that should be fixed, especially because it can lead users to wasting a lot of time investigating / trying to fix what looks to be an important issue.
I will try this another day and let you know.