august
august

Reputation: 45

Flutter Gradle build with error exception

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. enter image description here

After running the flutter doctor everything seems to be okay.

enter image description here

Upvotes: 0

Views: 2251

Answers (1)

RYOK
RYOK

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

  1. run these commands one by one

    flutter channel stable

    flutter upgrade --force

    flutter pub cache repair

    cd your app folder

    flutter clean

  2. 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' } }

  3. use VPN and rebuild your app

Upvotes: 1

Related Questions