Majd Albaho
Majd Albaho

Reputation: 1331

Could not find gradle flutter

I created a new flutter project by VS Code. but I don't know why I am got this error on run

FAILURE: Build failed with an exception.

I searched a lot for the gradle problem but I can't see any solution

I installed Android studio, Android SDK 29, Flutter SDK and VS code plugins

Upvotes: 0

Views: 1899

Answers (1)

Payam Zahedi
Payam Zahedi

Reputation: 855

I think you need to open the android folder with AndroidStudio and let Gradle to download android dependencies.

solution: if some countries have been banned maybe you need to use some VPN to download these dependencies. Hotspot shield is a good option cause it will change the IP address of your machine.

Upvotes: 2

Related Questions