Flutter is compiling forever (Not over)

Asked

Viewed 118 times

1

I start after an update on Archlinux. I have uninstalled android studio and flutter and nothing. When I try on a Windows machine the project is compiled normally

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.12.13+hotfix.7, on Linux, locale pt_BR.UTF-8)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Android Studio (version 3.5)
[!] Connected device

! Doctor found issues in 1 category.

Commando

flutter build apk -v
[  +30 ms] executing: [/home/matheus/development/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +34 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 9f5ff2306bb3e30b2b98eee79cd231b1336f41f4
[        ] executing: [/home/matheus/development/flutter/] git describe --match v*.*.* --first-parent --long --tags
[   +5 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[        ] v1.12.13+hotfix.7-0-g9f5ff2306
[   +9 ms] executing: [/home/matheus/development/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[   +4 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [/home/matheus/development/flutter/] git ls-remote --get-url origin
[   +5 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +54 ms] executing: [/home/matheus/development/flutter/] git rev-parse --abbrev-ref HEAD
[   +6 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +50 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +4 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +208 ms] Found plugin flutter_keyboard_visibility at /home/matheus/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_keyboard_visibility-0.7.0/
[  +22 ms] Found plugin flutter_statusbarcolor at /home/matheus/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_statusbarcolor-0.2.3/
[   +8 ms] Found plugin geolocator at /home/matheus/development/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator-5.2.0/
[   +4 ms] Found plugin google_api_availability at /home/matheus/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_api_availability-2.0.2/
[  +19 ms] Found plugin image_cropper at /home/matheus/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_cropper-1.1.2/
[   +7 ms] Found plugin image_picker at /home/matheus/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.6.2+3/
[  +10 ms] Found plugin location_permissions at /home/matheus/development/flutter/.pub-cache/hosted/pub.dartlang.org/location_permissions-2.0.4+1/
[  +22 ms] Found plugin path_provider at /home/matheus/development/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-1.5.1/
[  +24 ms] Found plugin sqflite at /home/matheus/development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.2.0/
[ +157 ms] Found plugin flutter_keyboard_visibility at /home/matheus/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_keyboard_visibility-0.7.0/
[   +1 ms] Found plugin flutter_statusbarcolor at /home/matheus/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_statusbarcolor-0.2.3/
[   +3 ms] Found plugin geolocator at /home/matheus/development/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator-5.2.0/
[   +1 ms] Found plugin google_api_availability at /home/matheus/development/flutter/.pub-cache/hosted/pub.dartlang.org/google_api_availability-2.0.2/
[   +3 ms] Found plugin image_cropper at /home/matheus/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_cropper-1.1.2/
[        ] Found plugin image_picker at /home/matheus/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.6.2+3/
[   +1 ms] Found plugin location_permissions at /home/matheus/development/flutter/.pub-cache/hosted/pub.dartlang.org/location_permissions-2.0.4+1/
[   +6 ms] Found plugin path_provider at /home/matheus/development/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-1.5.1/
[   +8 ms] Found plugin sqflite at /home/matheus/development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.2.0/
[  +70 ms] Generating /mnt/d/Dev/Flutter/DeliveryParceiro/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[  +51 ms] You are building a fat APK that includes binaries for android-arm, android-arm64, android-x64.
[        ] If you are deploying the app to the Play Store, it's recommended to use app bundles or split the APK to reduce the APK size.
[        ]     To generate an app bundle, run:
[        ]         flutter build appbundle --target-platform android-arm,android-arm64,android-x64
[        ]         Learn more on: https://developer.android.com/guide/app-bundle
[        ]     To split the APKs per ABI, run:
[        ]         flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi
[        ]         Learn more on:  https://developer.android.com/studio/build/configure-apk-splits#configure-abi-split
[  +27 ms] Running Gradle task 'assembleRelease'...
[   +2 ms] gradle.properties already sets `android.enableR8`
[   +3 ms] Using gradle from /mnt/d/Dev/Flutter/DeliveryParceiro/android/gradlew.
[  +12 ms] executing: /home/matheus/development/android-studio/jre/bin/java -version
[  +80 ms] Exit code 0 from: /home/matheus/development/android-studio/jre/bin/java -version
[        ] openjdk version "1.8.0_202-release"
           OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
           OpenJDK 64-Bit Server VM (build 25.202-b49-5587405, mixed mode)
[   +4 ms] executing: [/mnt/d/Dev/Flutter/DeliveryParceiro/android/] /mnt/d/Dev/Flutter/DeliveryParceiro/android/gradlew -Pverbose=true -Ptarget=lib/main.dart
-Ptrack-widget-creation=true -Pshrink=true -Ptarget-platform=android-arm,android-arm64,android-x64 assembleRelease
[+3816 ms] Starting a Gradle Daemon, 7 busy Daemons could not be reused, use --status for details
[+17084 ms] > Task :app:compileFlutterBuildRelease
[        ] [  +32 ms] executing: [/home/matheus/development/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +2 ms] [  +35 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +2 ms] [        ] 9f5ff2306bb3e30b2b98eee79cd231b1336f41f4
[        ] [        ] executing: [/home/matheus/development/flutter/] git describe --match v*.*.* --first-parent --long --tags
[        ] [   +7 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[        ] [        ] v1.12.13+hotfix.7-0-g9f5ff2306
[        ] [   +9 ms] executing: [/home/matheus/development/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[        ] [   +6 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] [        ] origin/stable
[        ] [        ] executing: [/home/matheus/development/flutter/] git ls-remote --get-url origin
[        ] [   +6 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] [        ] https://github.com/flutter/flutter.git
[        ] [  +53 ms] executing: [/home/matheus/development/flutter/] git rev-parse --abbrev-ref HEAD
[        ] [   +7 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] [        ] stable
[        ] [  +32 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [   +6 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [ +133 ms] Initializing file store
[ +585 ms] [+1832 ms] kernel_snapshot: Starting due to {InvalidatedReason.inputChanged}
[ +100 ms] [  +16 ms] /home/matheus/development/flutter/bin/cache/dart-sdk/bin/dart
/home/matheus/development/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root
/home/matheus/development/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk_product/ --target=flutter -Ddart.developer.causal_async_stacks=true
-Ddart.vm.profile=false -Ddart.vm.product=true --bytecode-options=source-positions --aot --tfa --packages /mnt/d/Dev/Flutter/DeliveryParceiro/.packages
--output-dill /mnt/d/Dev/Flutter/DeliveryParceiro/.dart_tool/flutter_build/7396d9944a66153207e8f6126956129e/app.dill --depfile
/mnt/d/Dev/Flutter/DeliveryParceiro/.dart_tool/flutter_build/7396d9944a66153207e8f6126956129e/kernel_snapshot.d package:rango_parceiro/main.dart

1 answer

0


It started working again after changing the linux kernel. I was using linux-zen and it seems that the latest version did not go well with flutter.

As last resource I changed the kernel to linux-lts

pacin linux-lts

Browser other questions tagged

You are not signed in. Login or sign up in order to post.