构建/编译Flutter应用程序时出现问题

时间:2020-01-29 02:45:02

标签: java android gradle kotlin flutter

每次尝试构建Flutter应用程序时都会遇到此错误

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 download kotlin-gradle-plugin.jar (org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50)
      > Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugin/1.3.50/kotlin-gradle-plugin-1.3.50.jar'.
         > Connection reset
   > Could not download kotlin-annotation-processing-gradle.jar (org.jetbrains.kotlin:kotlin-annotation-processing-gradle:1.3.50)
      > Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-annotation-processing-gradle/1.3.50/kotlin-annotation-processing-gradle-1.3.50.jar'.
         > Connection reset
   > Could not download kotlin-android-extensions.jar (org.jetbrains.kotlin:kotlin-android-extensions:1.3.50)
      > Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-android-extensions/1.3.50/kotlin-android-extensions-1.3.50.jar'.
         > Connection reset
   > Could not download kotlin-compiler-embeddable.jar (org.jetbrains.kotlin:kotlin-compiler-embeddable:1.3.50)
      > Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.3.50/kotlin-compiler-embeddable-1.3.50.jar'.
         > Connection reset

* 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 37m 42s
Finished with error: Gradle task assembleDebug failed with exit code 1

我正在运行Windows 10。 Ran Flutter Doctor,一切似乎都很好。

请帮助我调试此问题,似乎我永远无法开始android开发。昨天浪费了全部时间调试所有东西,而现在。

0 个答案:

没有答案