skip to Main Content

I tried to import flutter project from my pc to the android studio and got this error.
I already read the link that they give to me but I still don’t understand. A little help please, or how do I import flutter project correctly?

The error

img

3

Answers


  1. from which version/tool you imported the project?. This is normally happed because of gradle-wrapper issues. Please check the link.
    https://quick-adviser.com/how-can-we-solve-project-is-not-a-gradle-based-project/

    Login or Signup to reply.
  2. The project is not Gradle based can be because bulid.gradle and settings.gradle are not in the IDE project directory,

    Try this

    Open that other folder as an Android Studio Project and let it download other dependencies and file or you can create new flutter project and check the file generated with yours and try to add the file not in your own from the new flutter project you created.

    This will solve the issue

    Login or Signup to reply.
  3. I usually solve this by File -> Repair IDE

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search