حل ارور gradle در vscode

PS D:\Projects\Flutter\helloflutter> flutter run
Launching lib\main.dart on 192.168.149.101:5555 in debug mode…

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project ‘android’.

Could not resolve all artifacts for configuration ‘:classpath’.
Could not find com.android.tools.build:gradle:3.5.0.
Searched in the following locations:
– https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.5.0/gradle-3.5.0.pom
– https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.5.0/gradle-3.5.0.jar
– https://jcenter.bintray.com/com/android/tools/build/gradle/3.5.0/gradle-3.5.0.pom
– https://jcenter.bintray.com/com/android/tools/build/gradle/3.5.0/gradle-3.5.0.jar
Required by:
project :

  • Try:
    Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output. Run with –scan to get full insights.
  • Get more help at https://help.gradle.org

BUILD FAILED in 12s
Running Gradle task ‘assembleDebug’…
Running Gradle task ‘assembleDebug’… Done 14.8s
Exception: Gradle task assembleDebug failed with exit code 1


ویدیو آموزش نصب gradle روی ویندوز رو میتونید از لینک زیر دانلود کنید:

کلیک کنید

سیدعباس حسینی

نویسنده: AbbasHoseini

به دنبال خلق رویام تو دنیای برنامه نویسی پیرو دنیای آزاد

دیدگاهتان را بنویسید

نشانی ایمیل شما منتشر نخواهد شد.