discodowney
discodowney

Reputation: 1507

Task 'assembleDebug' not found in root project 'android' for Flutter projec in VS Code

I am brand new to flutter and just trying to get a hello world app to run. I have installed all the things i need to, when I run flutter doctor i get told everything is installed, green ticks all the way down the list.

Then I open the app in VS Code, open an Android simulator from Android Studio, and run flutter run.

But then I get the following:

enter image description here

Anyone know what might be wrong?

Upvotes: 2

Views: 2555

Answers (1)

Ahmed Nabil
Ahmed Nabil

Reputation: 161

i had the same issue. the problem for me was that i didn't had settings.gradle under root project so, add that file under root project and add this line in it

include ':app'

hope it works.

Upvotes: 1

Related Questions