flutter / flutter/flutter-intellij

New projects are being created incomplete

Open
#3,305 19 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2k
Forks
356
Avg merge
1d 11h
Merged PRs (30d)
27

Description

So, here's what happens when I create a new project with this wizard:

![image](https://user-images.githubusercontent.com/8120472/54645776-c949ca80-4a7b-11e9-80ae-a45d435c9fa5.png)

I get this:

![image](https://user-images.githubusercontent.com/8120472/54645824-f9916900-4a7b-11e9-9098-8e82f540cd7e.png)

and this notification:

![image](https://user-images.githubusercontent.com/8120472/54645859-12018380-4a7c-11e9-8edf-4a871cac5188.png)

So here are the issues so far:

1. Why do I have to configure the Android Framework after the project was created? Shouldn't this be automatic or questioned at the Wizard?

2. Why there's no Dart framework detected and I have to dig into the Flutter SDK files to find it?

3. 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:

![image](https://user-images.githubusercontent.com/8120472/54646031-9e13ab00-4a7c-11e9-80c6-5445d43aa227.png)

This is what I get after searching inside the Flutter SDK folders for a while:

![image](https://user-images.githubusercontent.com/8120472/54646057-b4ba0200-4a7c-11e9-8013-8a7762e38dce.png)

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:

![image](https://user-images.githubusercontent.com/8120472/54646149-f8ad0700-4a7c-11e9-8bd2-1c6da491c7ed.png)

And now the Flutter logo on the Root on my project is gone! Why?

![image](https://user-images.githubusercontent.com/8120472/54646161-06628c80-4a7d-11e9-85fe-ce0700539a38.png)

This is my module settings with the Android Framework configured:

![image](https://user-images.githubusercontent.com/8120472/54646207-242ff180-4a7d-11e9-920f-9446fdddaaa9.png)

All looks good....But, this is the project configuration:

![image](https://user-images.githubusercontent.com/8120472/54646230-33af3a80-4a7d-11e9-8e0a-0e65aa59d74c.png)

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.