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.

Empty project folder after creating new Flutter "module" in IntelliJ

See original GitHub issue

From @rxlabz on May 11, 2017 10:29

Nothing happens when I create a new Flutter “module” inside a Intellij existing project. Creating new Flutter project works fine, but File/New/Module => Flutter create a folder with the .iml file alone.

Creating other type of Dart “modules” works fine.

Flutter Doctor

[✓] Flutter (on Mac OS X 10.12.4 16E195, channel master)
    • Flutter at /Users/rxlabz/dev/tools/flutter
    • Framework revision 2f590eccbc (5 hours ago), 2017-05-10 22:08:27 -0700
    • Engine revision f2581c9bcc
    • Tools Dart version 1.23.0-dev.11.11

[✓] Android toolchain - develop for Android devices (Android SDK 25.0.2)
    • Android SDK at /Users/rxlabz/Library/Android/sdk
    • Platform android-25, build-tools 25.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version: OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] iOS toolchain - develop for iOS devices (Xcode 8.3.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 8.3.2, Build version 8E2002
    • ios-deploy 1.9.1
    • CocoaPods version 1.2.0

[✓] Android Studio (version 2.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Gradle version 3.2
    • Java version: OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] IntelliJ IDEA Ultimate Edition (version 2016.3.6)
    • Dart plugin version 163.13137
    • Flutter plugin version 12.0

[✓] IntelliJ IDEA Ultimate Edition (version 2017.1.3 RC)
    • Dart plugin version 171.4006
    • Flutter plugin version 13.1

[-] WebStorm (version 2017.1)
    • Flutter plugin not installed; this adds Flutter specific functionality.
    • For information about managing plugins, see
      https://www.jetbrains.com/help/idea/managing-plugins.html

[✓] Connected devices
    • None

Copied from original issue: flutter/flutter#9990

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
mit-mitcommented, May 11, 2017

@rxlabz, not sure if this is helpful for what you need, but the following workaround seems to work:

  1. Right-click Project view > Open Module Settings
  2. Click + > New Module
  3. Pick Flutter + enter properties as usual
0reactions
skybriancommented, May 19, 2017

Creating multiple modules should work right in the next release.

Creating a Flutter module automatically creates an “Android” module to go along with it, but it will have a better name that should show the relationship.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dart Main File (and other essential files) Not Created In New ...
I found the answer. If you go File->Project Structure->Modules->click the (+) sign and select a new module, then all the proper files will ......
Read more >
Project panel doesn't show the folders and files are looking as ...
The files are looking as ignored files, and not all files and folders are listed! Tried to delete the ./idea and reopen it...
Read more >
IntelliJ IDEA - Project structure settings - JetBrains
Project structure settings are stored together with other project files in the .idea directory in the .xml format. These settings include SDKs, project...
Read more >
Empty project cannot add new modules directly other than an ...
New empty project, add new module and select Sping initializr and continue as expected. Any number of modules could be added in this...
Read more >
Dart | IntelliJ IDEA Documentation - JetBrains
To attach a Dart project (package) to an existing IntelliJ IDEA project you need to add its root folder as a content root...
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