Reputation: 45
i just setup my android studio and vs code and flutter SDK installed but any time i try running the project i get this Gradle error, i cant figure out what the problem is please help me out.
After running the flutter doctor everything seems to be okay.
Upvotes: 0
Views: 2251
Reputation: 473
the problem might be caused by many factors so lets try some solutions after each one rebuild your app if the error message changed or the problem solved please keep us informed
run these commands one by one
flutter channel stable
flutter upgrade --force
flutter pub cache repair
cd your app folder
flutter clean
edit app/build.gradle in your host app such as it includes the local repo like in here
repositories { maven { url 'https://storage.googleapis.com/download.flutter.io' } }
use VPN and rebuild your app
Upvotes: 1