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.

"Creating a new project from existing source code" guidance is not valid anymore

See original GitHub issue

@haqqi commented on Fri May 18 2018

From URL: https://flutter.io/using-ide/

Because the recent Flutter plugin for Android Studio, the guide for importing existing code is not valid anymore. I cannot find any menu of creating Flutter using existing code. If i try to create new Flutter app, it will show error if the existing folder exists.

Any idea how to import existing project properly in Android Studio?

image


@skota commented on Fri May 18 2018

Hmm!..i just clicked ‘open an existing android studio project’.

Disclaimer: I am an absolute beginner with flutter. Pls ignore if my answer above is not relevant.


@zoechi commented on Fri May 18 2018

Please add the output of flutter doctor


@haqqi commented on Fri May 18 2018

PS C:\Users\Haqqi> flutter doctor -v
[√] Flutter (Channel beta, v0.3.2, on Microsoft Windows [Version 10.0.17134.48], locale en-US)
    • Flutter version 0.3.2 at D:\development\flutter
    • Framework revision 44b7e7d3f4 (4 weeks ago), 2018-04-20 01:02:44 -0700
    • Engine revision 09d05a3891
    • Dart version 2.0.0-dev.48.0.flutter-fe606f890b

[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at D:\development\android-sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.3
    • ANDROID_HOME = D:\development\android-sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
    • All Android licenses accepted.

[√] Android Studio (version 3.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 24.2.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)

[√] Connected devices (1 available)
    • ONEPLUS A3003 • 192.168.1.8:5555 • android-arm64 • Android 8.0.0 (API 26)

• No issues found!

NB: i did not say that Open an existing Android Studio project does not work. It works, but not perfectly just like when i created a new project of Flutter. For example, the project file browser is not displaying correct list.

So, what i did to continue existing project is:

  1. Create new Flutter project, then close the Android Studio
  2. Copy-Paste and replace my existing project to the new project
  3. Open Android Studio again.

In the end, this issue is addressed to the both of guide page, and maybe flutter plugin for Intellij.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
stevemessickcommented, Dec 6, 2018

Thanks for following up @zoechi !

0reactions
zoechicommented, Dec 6, 2018

Issue moved to flutter/website #1928 via ZenHub

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Creating a new project from existing source code" guidance ...
Because the recent Flutter plugin for Android Studio, the guide for importing existing code is not valid anymore. I cannot find any menu...
Read more >
Eclipse "Invalid Project Description" when creating new ...
I am trying to create a new project from existing source code. I keep getting the following error: "Invalid Project Description", project path...
Read more >
How to Contribute to Open Source
Want to contribute to open source? A guide to making open source contributions, for first-timers and for veterans.
Read more >
Importing Project from Existing Source Code - JetBrains
From the main menu, choose File | Open. · In the dialog that opens, select the directory that contains the desired source code....
Read more >
Code Review Guidelines - GitLab Docs
Code Review Guidelines. This guide contains advice and best practices for performing code review, and having your code reviewed. All merge requests for ......
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