0

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

5
  • run flutter doctor and add your output to the post so I can help where needed. Commented May 3, 2020 at 17:51
  • please add flutter doctor output Commented May 3, 2020 at 17:54
  • the flutter doctor came out Ok with no error Commented May 3, 2020 at 18:02
  • are you able to access download.flutter.io in your browser ? Commented May 3, 2020 at 18:08
  • yes in am able to access it Commented May 3, 2020 at 18:09

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks @RYOK SECURITY, I was able to resolve the issue using No-1 of the solutions you listed, it worked perfectly. thank you so much for putting me through.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.