Android – “flutter run” gets stuck at “Running Gradle task ‘assembleDebug”

androidandroid-sdk-toolsflutter

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:

enter image description here

Have anyone experienced the same issue?

Here is the output of 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.

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

enter image description here

Note: I am on Manjaro 18.1.5

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

Best Answer

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

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