“颤动"被困在"Running Gradle任务'assembleDebug"中; [英] "flutter run" gets stuck at "Running Gradle task 'assembleDebug"

查看:272
本文介绍了“颤动"被困在"Running Gradle任务'assembleDebug"中;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我今天将Flutter更新到了最新的稳定版本-1.12.13+hotfix.7(之前我运行的是1.12.13 + hotfix.6).当我尝试使用flutter run在vs代码中运行我的项目时,它总是卡在Running Gradle task 'assembleDebug上:

I updated Flutter to the latest stable version today - 1.12.13+hotfix.7 (I was running 1.12.13+hotfix.6 before). When I tried to run my project in vs code with flutter run it always gets stuck at Running Gradle task 'assembleDebug:

有人遇到过同样的问题吗?

Have anyone experienced the same issue?

这是flutter doctor -v的输出:

[georgi@georgi-pc Line-up-Generator]$ flutter doctor -v
[✓] Flutter (Channel stable, v1.12.13+hotfix.7, on Linux, locale en_GB.UTF-8)
    • Flutter version 1.12.13+hotfix.7 at /home/georgi/Development/flutter
    • Framework revision 9f5ff2306b (2 weeks ago), 2020-01-26 22:38:26 -0800
    • Engine revision a67792536c
    • Dart version 2.7.0

[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /home/georgi/Android/Sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • Java binary at: /opt/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses

[!] Android Studio (version 3.5)
    • Android Studio at /opt/android-studio
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] Connected device (1 available)
    • MI 8 • 62fb6fd8 • android-arm64 • Android 10 (API 29)

! Doctor found issues in 2 categories.

我必须指出,我已经尝试运行flutter doctor --android-licenses,但是卡在25%上

I have to point out that I have tried running flutter doctor --android-licenses but it gets stuck at 25%

注意:我正在使用Manjaro 18.1.5

Note: I am on Manjaro 18.1.5

更新: Dart SDK似乎存在问题: https://github.com/flutter/flutter/issues/49185#issuecomment-589968058

UPDATE: There seems to be an issue with Dart SDK: https://github.com/flutter/flutter/issues/49185#issuecomment-589968058

推荐答案

问题已在上游解决.如果要使用它,则必须通过运行

The issue has been resolved upstream. If you want to consume it you will have to switch to the master channel (for now. It will arrive in the stable channel at some point) by running

flutter channel master

运行之后,我能够在Linux 5.5上很好地构建我的apk

After running that, I was able to build my apk just fine on Linux 5.5

这篇关于“颤动"被困在"Running Gradle任务'assembleDebug"中;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆