I use Android Studio as my IDE in coding Flutter. I was able to create 2 projects before this and it worked absolutely fine. I had to clone a repo from Github. The IDE said
Go to Tools > SDK Manager > SDK Tools and check Google USB Driver. Restart Android Studio. All this worked for me, might be helpful to someone.