skip to Main Content

Disclaimer: I’m extremely new to this stuff; I’m trying out app development for the first time so please acknowledge that before flaming me if I’m missing something obvious lol.

So I’ve just started watching this tutorial series on Flutter that uses Android Studio as the IDE. I’ve installed the Flutter plugin aswell as the Dart plugin but for some reason when I try to create a new project, Dart is missing from the available languages:

Clicking the plus button on the side of the available languages panel will give me more lang plugins that I need to install to operate (dart not being one of them).

Also, theres a Dart generator on the left:It just shows me this. I’ve messed around a bit with that directory up there but it keeps saying that the relevant file wasn’t found, even though I have the Dart plugin installed.

I’ve done a few google searches and looking at my installed plugins in Android Studio, the Dart plugin is there and installed along with Flutter. I also tried looking for other tutorials but odd things here and there in the structure of the tutorials along with the Android Studio structure and UI have changed and I’d like to be able to stick to the series I found.

Any help is appreciated and I apologize if this is a noob thing to ask.

2

Answers


  1. Open new project with Flutter. I think Dart is already there. Try to run the default flutter app. It should work.

    Login or Signup to reply.
    1. Make sure that you have installed and configured Dart & Flutter SDK
      (You can check this by running the following command in Command
      Prompt- Administrator: flutter doctor).

    2. Then make sure the Flutter project type is selected When creating a
      new project, make sure you select the correct project type. In
      Android Studio, choose "Flutter" as the project type, not "Android."
      This ensures that Dart language support is available for your
      project.

    3. If that doesn’t work Sometimes, Android Studio cache can cause
      unexpected behavior. Try clearing the cache by going to "File" >
      "Invalidate Caches / Restart" and then select "Invalidate and
      Restart." This will clear the cache and restart Android Studio.

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