“颤动运行”问题 - 失败:构建失败并出现异常
当我运行“ 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
版本问题在这里您可以通过更改模拟器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.