“颤动运行”问题 - 失败:构建失败并出现异常

发布于 2025-01-19 22:21:13 字数 1199 浏览 1 评论 0原文

当我运行“ flutter运行”时,我会收到此错误消息。 我是Flutter,Dart和Android Studio的新手。我真的不知道该如何解决

$ flutter run
Using hardware rendering with device sdk gphone x86. If you notice graphics artifacts,
consider enabling software rendering with "--enable-software-rendering".
Launching lib\main.dart on sdk gphone x86 in debug mode...

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all files for configuration ':classpath'.
  > Could not find org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.3.
    Searched in the following locations:
      - https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.6.3/kotlin-gradle-plugin-1.6.3.pom
      - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.6.3/kotlin-gradle-plugin-1.6.3.pom
    Required by:
        project :

* Try:
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 2m 13s
Running Gradle task 'assembleDebug'...
  148.9s
Exception: Gradle task assembleDebug failed with exit code 1 ```

它发生在我的Android模拟器中以及我尝试使用手机时发生的 您认为问题是什么?

when I run 'flutter run' I get this error message.
I am new to flutter, dart, and android studio. I don't really know how to solve this

$ flutter run
Using hardware rendering with device sdk gphone x86. If you notice graphics artifacts,
consider enabling software rendering with "--enable-software-rendering".
Launching lib\main.dart on sdk gphone x86 in debug mode...

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all files for configuration ':classpath'.
  > Could not find org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.3.
    Searched in the following locations:
      - https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.6.3/kotlin-gradle-plugin-1.6.3.pom
      - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.6.3/kotlin-gradle-plugin-1.6.3.pom
    Required by:
        project :

* Try:
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 2m 13s
Running Gradle task 'assembleDebug'...
  148.9s
Exception: Gradle task assembleDebug failed with exit code 1 ```

It happens with my android emulator and also when I try using my mobile phone
What do you think is the problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一抹淡然 2025-01-26 22:21:13

版本问题在这里您可以通过更改模拟器SDK版本或在真实设备(更改SDK版本之后)运行来解决,也可以更改最小值和Target SDK版本。

version issue here you can solve by changing your emulator SDK version or run in a real device (after changing SDK version) and also you can change your minimum and target SDK version.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文