gpt4 book ai didi

android - 您好,我正在尝试为Flutter设置我的Android设备。 Gradle 错误

转载 作者:行者123 更新时间:2023-12-03 05:24:40 26 4
gpt4 key购买 nike

我正在尝试在Android设备上运行Flutter应用程序。我收到很多错误。我将发布屏幕截图并粘贴错误。提前致谢。

在 Debug模式下在SM G900H上启动lib \ main.dart ...

失败:生成失败,发生异常。
* 什么地方出了错:
配置根项目“android”时发生问题。

Could not resolve all artifacts for configuration ':classpath'. Could not resolve com.android.tools.build:gradle:3.5.0. Required by: project : Could not resolve com.android.tools.build:gradle:3.5.0. Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.5.0/gradle-3.5.0.pom'. Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.5.0/gradle-3.5.0.pom'. dl.google.com Could not resolve com.android.tools.build:gradle:3.5.0. Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.5.0/gradle-3.5.0.pom'. Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.5.0/gradle-3.5.0.pom'. jcenter.bintray.com Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50. Required by: project : Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50. Could not get resource 'https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.3.50/kotlin-gradle-plugin-1.3.50.pom'. Could not GET 'https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.3.50/kotlin-gradle-plugin-1.3.50.pom'. dl.google.com Could not resolve 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.pom'. Could not GET 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugin/1.3.50/kotlin-gradle-plugin-1.3.50.pom'. jcenter.bintray.com


  • 尝试:
    使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行,以获取更多日志输出。与--scan一起运行以获取完整的见解。
  • https://help.gradle.org上获得更多帮助

  • 在33秒内失败
    Gradle任务assembleDebug失败,退出代码为1
    退出(sigterm)

    Screenshot 1

    Screenshot 2

    最佳答案

    认为需要Internet连接。因此,第一次运行时,请确保您具有Internet连接。

    关于android - 您好,我正在尝试为Flutter设置我的Android设备。 Gradle 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61912919/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com