@baldeuniversel @Charlee
i try that also i modify snapcraft.yaml and it is as given:
name: moonhrm
version: '0.1.0'
base: core22
summary: A new Flutter project using WebView for Linux
description: An HR Management App that simplifies HR and saves your crucial time managing employees and all their related work.
confinement: strict
grade: stable
icon: snap/gui/moonhrm.png
apps:
moonhrm:
command: moonhrm
extensions: [gnome]
plugs:
- network
- wayland
- x11
- desktop
parts:
moonhrm:
source: .
plugin: flutter
flutter-target: lib/main.dart
# override-build: |
# export CXX=g++
# flutter build linux --release -v -t lib/main.dart
build-packages:
- cmake
- libgtk-3-dev
- libwebkit2gtk-4.0-dev
stage-packages:
- libgtk-3-0
- libwebkit2gtk-4.0-37
layout:
/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/webkit2gtk-4.1:
bind: $SNAP/gnome-platform/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/webkit2gtk-4.1
now i’m getting error like this:
:: [ +91 ms] Building Linux application...
:: [ +9 ms] executing: [build/linux/x64/release/] cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DFLUTTER_TARGET_PLATFORM=linux-x64 /root/parts/moonhrm/build/linux
:: [ +741 ms] -- The CXX compiler identification is GNU 11.4.0
:: [ +15 ms] -- Detecting CXX compiler ABI info
:: [ +91 ms] -- Detecting CXX compiler ABI info - done
:: [ +11 ms] -- Check for working CXX compiler: /usr/bin/g++ - skipped
:: [ ] -- Detecting CXX compile features
:: [ +5 ms] -- Detecting CXX compile features - done
:: [ +36 ms] -- Found PkgConfig: /snap/gnome-42-2204-sdk/current/usr/bin/pkg-config (found version "0.29.2")
:: [ ] -- Checking for module 'gtk+-3.0'
:: [ +100 ms] -- Found gtk+-3.0, version 3.24.38
:: [ +596 ms] -- Checking for module 'glib-2.0'
:: [ +15 ms] -- Found glib-2.0, version 2.78.1
:: [ +35 ms] -- Checking for module 'gio-2.0'
:: [ +19 ms] -- Found gio-2.0, version 2.78.1
:: [ +94 ms] -- Checking for module 'webkit2gtk-4.0'
:: [ +72 ms] -- Found webkit2gtk-4.0, version 2.42.5
:: [ +832 ms] -- Checking for module 'webkit2gtk-4.1'
:: [ +51 ms] -- Found webkit2gtk-4.1, version 2.42.5
:: [ +283 ms] -- Found X11: /usr/include
:: [ ] -- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
:: [ +102 ms] -- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
:: [ ] -- Looking for gethostbyname
:: [ +70 ms] -- Looking for gethostbyname - found
:: [ ] -- Looking for connect
:: [ +73 ms] -- Looking for connect - found
:: [ ] -- Looking for remove
:: [ +74 ms] -- Looking for remove - found
:: [ ] -- Looking for shmat
:: [ +73 ms] -- Looking for shmat - found
:: [ ] -- Looking for IceConnectionNumber in ICE
:: [ +73 ms] -- Looking for IceConnectionNumber in ICE - found
:: [ +9 ms] -- Checking for module 'ayatana-appindicator3-0.1'
:: [ +28 ms] -- Found ayatana-appindicator3-0.1, version 0.5.93
:: [ +542 ms] -- Configuring done
:: [ +246 ms] CMake Warning at flutter/ephemeral/.plugin_symlinks/hid_listener/linux/CMakeLists.txt:23 (add_library):
:: [ +1 ms] Cannot generate a safe runtime search path for target hid_listener_plugin
:: [ ] because files in some directories may conflict with libraries in implicit
:: [ ] directories:
:: [ ] runtime library [libSM.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
:: [ ] /snap/gnome-42-2204-sdk/current/usr/lib/x86_64-linux-gnu
:: [ ] runtime library [libICE.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
:: [ ] /snap/gnome-42-2204-sdk/current/usr/lib/x86_64-linux-gnu
:: [ ] runtime library [libX11.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
:: [ ] /snap/gnome-42-2204-sdk/current/usr/lib/x86_64-linux-gnu
:: [ ] runtime library [libXext.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
:: [ ] /snap/gnome-42-2204-sdk/current/usr/lib/x86_64-linux-gnu
:: [ ] runtime library [libXi.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
:: [ ] /snap/gnome-42-2204-sdk/current/usr/lib/x86_64-linux-gnu
:: [ ] Some of these libraries may not be found correctly.
:: [ +54 ms] -- Generating done
:: [ +8 ms] -- Build files have been written to: /root/parts/moonhrm/build/build/linux/x64/release
:: [ +21 ms] executing: ninja -C build/linux/x64/release install
:: [ +7 ms] ninja: Entering directory `build/linux/x64/release'
:: [+12625 ms] [1/34] Generating /root/parts/moonhrm/build/linux/flutter/ephemeral/libflutter_linux_gtk.so, /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_basic_message_channel.h, /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_binary_codec.h, /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_binary_messenger.h, /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_dart_project.h, /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_engine.h, /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_json_message_codec.h, /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_json_method_codec.h, /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_message_codec.h, /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_method_call.h, /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_method_channel.h, /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_method_codec.h, /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_method_response.h, /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_plugin_registrar.h, /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_plugin_registry.h, /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_standard_message_codec.h, /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_standard_method_codec.h, /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_string_codec.h, /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_value.h, /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_view.h, /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/flutter_linux.h, _phony_
:: [ +5 ms] FAILED: /root/parts/moonhrm/build/linux/flutter/ephemeral/libflutter_linux_gtk.so /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_basic_message_channel.h /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_binary_codec.h /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_binary_messenger.h /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_dart_project.h /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_engine.h /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_json_message_codec.h /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_json_method_codec.h /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_message_codec.h /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_method_call.h /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_method_channel.h /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_method_codec.h /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_method_response.h /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_plugin_registrar.h /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_plugin_registry.h /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_standard_message_codec.h /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_standard_method_codec.h /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_string_codec.h /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_value.h /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/fl_view.h /root/parts/moonhrm/build/linux/flutter/ephemeral/flutter_linux/flutter_linux.h flutter/_phony_ /root/parts/moonhrm/build/build/linux/x64/release/flutter/_phony_
:: [ ] cd /root/parts/moonhrm/build/build/linux/x64/release/flutter && /usr/bin/cmake -E env FLUTTER_ROOT=/root/parts/moonhrm/build/flutter-distro PROJECT_DIR=/root/parts/moonhrm/build DART_OBFUSCATION=false TRACK_WIDGET_CREATION=true TREE_SHAKE_ICONS=true PACKAGE_CONFIG=/root/parts/moonhrm/build/.dart_tool/package_config.json FLUTTER_TARGET=lib/main.dart /root/parts/moonhrm/build/flutter-distro/packages/flutter_tools/bin/tool_backend.sh linux-x64 Release
:: [ ] Woah! You appear to be trying to run flutter as root.
:: [ ] We strongly recommend running the flutter tool without superuser privileges.
:: [ ] /
:: [ +2 ms] 📎
:: [ ] [ +12 ms] Unable to locate an Android SDK.
:: [ ] [ +5 ms] executing: uname -m
:: [ ] [ +3 ms] Exit code 0 from: uname -m
:: [ ] [ ] x86_64
:: [ ] [ +28 ms] 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.
:: [ ] [ ] Artifact Instance of 'LegacyCanvasKitRemover' is not required, skipping update.
:: [ ] [ +1 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.
:: [ ] [ +79 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
:: [ ] [ ] Artifact Instance of 'GradleWrapper' 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.
:: [ ] [ ] Artifact Instance of 'LegacyCanvasKitRemover' is not required, skipping update.
:: [ ] [ ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
:: [ ] [ ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
:: [ ] [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
:: [ ] [ +1 ms] 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.
:: [ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
:: [ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
:: [ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
:: [ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
:: [ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
:: [ ] [ ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
:: [ ] [ ] Artifact Instance of 'PubDependencies' is not required, skipping update.
:: [ ] [ +44 ms] Initializing file store
:: [ ] [ +20 ms] Skipping target: gen_localizations
:: [ ] [ +9 ms] gen_dart_plugin_registrant: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents: /root/parts/moonhrm/build/.dart_tool/package_config_subset}
:: [ ] [ +7 ms] unpack_linux: Starting due to {}
:: [ ] [ +52 ms] unpack_linux: Complete
:: [ +1 ms] [ +201 ms] Found plugin app_links at /root/.pub-cache/hosted/pub.dev/app_links-3.5.1/
:: [ ] [ +26 ms] Found plugin connectivity_plus at /root/.pub-cache/hosted/pub.dev/connectivity_plus-3.0.6/
:: [ ] [ +9 ms] Found plugin desktop_lifecycle at /root/.pub-cache/hosted/pub.dev/desktop_lifecycle-0.1.1/
:: [ ] [ +1 ms] Found plugin desktop_webview_window at /root/.pub-cache/hosted/pub.dev/desktop_webview_window-0.2.3/
:: [ ] [ +7 ms] Found plugin firebase_core at /root/.pub-cache/hosted/pub.dev/firebase_core-2.24.2/
:: [ +1 ms] [ +2 ms] Found plugin firebase_core_web at /root/.pub-cache/hosted/pub.dev/firebase_core_web-2.10.0/
:: [ ] [ +1 ms] Found plugin firebase_messaging at /root/.pub-cache/hosted/pub.dev/firebase_messaging-14.7.10/
:: [ ] [ +3 ms] Found plugin firebase_messaging_web at /root/.pub-cache/hosted/pub.dev/firebase_messaging_web-3.5.18/
:: [ ] [ +3 ms] Found plugin flutter_inappwebview at /root/.pub-cache/hosted/pub.dev/flutter_inappwebview-5.8.0/
:: [ ] [ +2 ms] Found plugin flutter_local_notifications at /root/.pub-cache/hosted/pub.dev/flutter_local_notifications-16.3.3/
:: [ ] [ +1 ms] Found plugin flutter_local_notifications_linux at /root/.pub-cache/hosted/pub.dev/flutter_local_notifications_linux-4.0.1/
:: [ ] [ +3 ms] Found plugin fullscreen_window at /root/.pub-cache/hosted/pub.dev/fullscreen_window-1.0.4/
:: [ ] [ +1 ms] Found plugin geolocator at /root/.pub-cache/hosted/pub.dev/geolocator-10.1.1/
:: [ ] [ +2 ms] Found plugin geolocator_android at /root/.pub-cache/hosted/pub.dev/geolocator_android-4.3.1/
:: [ ] [ +4 ms] Found plugin geolocator_apple at /root/.pub-cache/hosted/pub.dev/geolocator_apple-2.3.7/
:: [ ] [ +2 ms] Found plugin geolocator_web at /root/.pub-cache/hosted/pub.dev/geolocator_web-2.2.1/
:: [ ] [ +1 ms] Found plugin geolocator_windows at /root/.pub-cache/hosted/pub.dev/geolocator_windows-0.2.3/
:: [ ] [ +5 ms] Found plugin google_sign_in at /root/.pub-cache/hosted/pub.dev/google_sign_in-6.1.6/
:: [ ] [ +1 ms] Found plugin google_sign_in_android at /root/.pub-cache/hosted/pub.dev/google_sign_in_android-6.1.21/
:: [ ] [ +28 ms] Found plugin google_sign_in_ios at /root/.pub-cache/hosted/pub.dev/google_sign_in_ios-5.6.5/
:: [ ] [ +2 ms] Found plugin google_sign_in_web at /root/.pub-cache/hosted/pub.dev/google_sign_in_web-0.12.0+4/
:: [ ] [ +1 ms] Found plugin gtk at /root/.pub-cache/hosted/pub.dev/gtk-2.1.0/
:: [ ] [ +1 ms] Found plugin hid_listener at /root/.pub-cache/hosted/pub.dev/hid_listener-2.0.1/
:: [ ] [ +8 ms] Found plugin location at /root/.pub-cache/hosted/pub.dev/location-5.0.3/
:: [ ] [ +1 ms] Found plugin location_web at /root/.pub-cache/hosted/pub.dev/location_web-4.2.0/
:: [ ] [ +8 ms] Found plugin package_info_plus at /root/.pub-cache/hosted/pub.dev/package_info_plus-4.1.0/
:: [ ] [ +3 ms] Found plugin path_provider at /root/.pub-cache/hosted/pub.dev/path_provider-2.0.15/
:: [ ] [ +1 ms] Found plugin path_provider_android at /root/.pub-cache/hosted/pub.dev/path_provider_android-2.0.27/
:: [ ] [ +1 ms] Found plugin path_provider_foundation at /root/.pub-cache/hosted/pub.dev/path_provider_foundation-2.2.4/
:: [ ] [ ] Found plugin path_provider_linux at /root/.pub-cache/hosted/pub.dev/path_provider_linux-2.1.11/
:: [ ] [ +1 ms] Found plugin path_provider_windows at /root/.pub-cache/hosted/pub.dev/path_provider_windows-2.1.7/
:: [ ] [ ] Found plugin permission_handler at /root/.pub-cache/hosted/pub.dev/permission_handler-11.0.1/
:: [ ] [ ] Found plugin permission_handler_android at /root/.pub-cache/hosted/pub.dev/permission_handler_android-11.1.0/
:: [ ] [ ] Found plugin permission_handler_apple at /root/.pub-cache/hosted/pub.dev/permission_handler_apple-9.1.4/
:: [ ] [ +1 ms] Found plugin permission_handler_windows at /root/.pub-cache/hosted/pub.dev/permission_handler_windows-0.1.3/
:: [ ] [ +5 ms] Found plugin screen_capturer at /root/.pub-cache/hosted/pub.dev/screen_capturer-0.1.6/
:: [ ] [ ] Found plugin screen_retriever at /root/.pub-cache/hosted/pub.dev/screen_retriever-0.1.6/
:: [ ] [ ] Found plugin shared_preferences at /root/.pub-cache/hosted/pub.dev/shared_preferences-2.2.0/
:: [ ] [ ] Found plugin shared_preferences_android at /root/.pub-cache/hosted/pub.dev/shared_preferences_android-2.2.0/
:: [ ] [ ] Found plugin shared_preferences_foundation at /root/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.3.2/
:: [ ] [ ] Found plugin shared_preferences_linux at /root/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.3.0/
:: [ ] [ +1 ms] Found plugin shared_preferences_web at /root/.pub-cache/hosted/pub.dev/shared_preferences_web-2.2.0/
:: [ ] [ ] Found plugin shared_preferences_windows at /root/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.3.0/
:: [ ] [ +2 ms] Found plugin sign_in_with_apple at /root/.pub-cache/hosted/pub.dev/sign_in_with_apple-5.0.0/
:: [ ] [ +1 ms] Found plugin sign_in_with_apple_web at /root/.pub-cache/hosted/pub.dev/sign_in_with_apple_web-1.0.1/
:: [ ] [ +1 ms] Found plugin sqflite at /root/.pub-cache/hosted/pub.dev/sqflite-2.2.8+4/
:: [ ] [ +3 ms] Found plugin system_tray at /root/.pub-cache/hosted/pub.dev/system_tray-2.0.3/
:: [ ] [ +3 ms] Found plugin url_launcher at /root/.pub-cache/hosted/pub.dev/url_launcher-6.1.11/
:: [ ] [ ] Found plugin url_launcher_android at /root/.pub-cache/hosted/pub.dev/url_launcher_android-6.0.37/
:: [ ] [ ] Found plugin url_launcher_ios at /root/.pub-cache/hosted/pub.dev/url_launcher_ios-6.1.4/
:: [ ] [ ] Found plugin url_launcher_linux at /root/.pub-cache/hosted/pub.dev/url_launcher_linux-3.0.5/
:: [ ] [ ] Found plugin url_launcher_macos at /root/.pub-cache/hosted/pub.dev/url_launcher_macos-3.0.6/
:: [ ] [ +1 ms] Found plugin url_launcher_web at /root/.pub-cache/hosted/pub.dev/url_launcher_web-2.0.18/
:: [ ] [ ] Found plugin url_launcher_windows at /root/.pub-cache/hosted/pub.dev/url_launcher_windows-3.0.7/
:: [ ] [ +5 ms] Found plugin webview_flutter at /root/.pub-cache/hosted/pub.dev/webview_flutter-4.2.2/
:: [ ] [ ] Found plugin webview_flutter_android at /root/.pub-cache/hosted/pub.dev/webview_flutter_android-3.9.2/
:: [ ] [ +1 ms] Found plugin webview_flutter_wkwebview at /root/.pub-cache/hosted/pub.dev/webview_flutter_wkwebview-3.7.2/
:: [ ] [ ] Found plugin webview_win_floating at /root/.pub-cache/hosted/pub.dev/webview_win_floating-2.2.0/
:: [ ] [ +1 ms] Found plugin win_capture at /root/.pub-cache/hosted/pub.dev/win_capture-0.0.5/
:: [ ] [ ] Found plugin win_toast at /root/.pub-cache/hosted/pub.dev/win_toast-0.3.0/
:: [ ] [ +8 ms] Found plugin window_manager at /root/.pub-cache/hosted/pub.dev/window_manager-0.3.5/
:: [ ] [ +9 ms] Found plugin keyboard_event at /root/parts/moonhrm/build/lib/packages/keyboard_event-main/
:: [ ] [ ] Found plugin mouse_event at /root/parts/moonhrm/build/lib/packages/mouse_event-master/
:: [ ] [ +17 ms] gen_dart_plugin_registrant: Complete
:: [ ] [ ] kernel_snapshot_program: Starting due to {}
:: [ +2 ms] [ +8 ms] /root/parts/moonhrm/build/flutter-distro/bin/cache/dart-sdk/bin/dartaotruntime --disable-dart-dev /root/parts/moonhrm/build/flutter-distro/bin/cache/dart-sdk/bin/snapshots/frontend_server_aot.dart.snapshot --sdk-root /root/parts/moonhrm/build/flutter-distro/bin/cache/artifacts/engine/common/flutter_patched_sdk_product/ --target=flutter --no-print-incremental-dependencies -Ddart.vm.profile=false -Ddart.vm.product=true --delete-tostring-package-uri=dart:ui --delete-tostring-package-uri=package:flutter --aot --tfa --target-os linux --packages /root/parts/moonhrm/build/.dart_tool/package_config.json --output-dill /root/parts/moonhrm/build/.dart_tool/flutter_build/da301c7b1f1986771ce5f17a523ccf73/program.dill --depfile /root/parts/moonhrm/build/.dart_tool/flutter_build/da301c7b1f1986771ce5f17a523ccf73/kernel_snapshot_program.d --source file:///root/parts/moonhrm/build/.dart_tool/flutter_build/dart_plugin_registrant.dart --source package:flutter/src/dart_plugin_registrant.dart -Dflutter.dart_plugin_registrant=file:///root/parts/moonhrm/build/.dart_tool/flutter_build/dart_plugin_registrant.dart --verbosity=error package:moon_hrm/main.dart
:: [ ] [+2225 ms] ../../../.pub-cache/hosted/pub.dev/win32-4.1.4/lib/src/guid.dart:31:9: Error: Type 'UnmodifiableUint8ListView' not found.
:: [ ] [ +1 ms] final UnmodifiableUint8ListView bytes;
:: [ ] [ ] ^^^^^^^^^^^^^^^^^^^^^^^^^
:: [ ] [+3055 ms] ../../../.pub-cache/hosted/pub.dev/get-4.6.5/lib/get_navigation/src/extension_navigation.dart:222:62: Error: The getter 'backgroundColor' isn't defined for the class 'ThemeData'.
:: [ ] [ ] - 'ThemeData' is from 'package:flutter/src/material/theme_data.dart' ('flutter-distro/packages/flutter/lib/src/material/theme_data.dart').
:: [ ] [ ] Try correcting the name to the name of an existing getter, or defining a getter or field named 'backgroundColor'.
:: [ ] [ ] TextStyle(color: confirmTextColor ?? theme.backgroundColor),
:: [ ] [ ] ^^^^^^^^^^^^^^^
:: [ ] [+1353 ms] ../../../.pub-cache/hosted/pub.dev/win32-4.1.4/lib/src/guid.dart:31:9: Error: 'UnmodifiableUint8ListView' isn't a type.
:: [ ] [ ] final UnmodifiableUint8ListView bytes;
:: [ ] [ ] ^^^^^^^^^^^^^^^^^^^^^^^^^
:: [ ] [ ] ../../../.pub-cache/hosted/pub.dev/win32-4.1.4/lib/src/guid.dart:51:17: Error: Method not found: 'UnmodifiableUint8ListView'.
:: [ ] [ ] return Guid(UnmodifiableUint8ListView(guid));
:: [ ] [ ] ^^^^^^^^^^^^^^^^^^^^^^^^^
:: [ ] [ ] ../../../.pub-cache/hosted/pub.dev/win32-4.1.4/lib/src/guid.dart:55:31: Error: Method not found: 'UnmodifiableUint8ListView'.
:: [ ] [ ] factory Guid.zero() => Guid(UnmodifiableUint8ListView(Uint8List(16)));
:: [ ] [ ] ^^^^^^^^^^^^^^^^^^^^^^^^^
:: [ ] [ ] ../../../.pub-cache/hosted/pub.dev/win32-4.1.4/lib/src/guid.dart:99:17: Error: Method not found: 'UnmodifiableUint8ListView'.
:: [ ] [ ] return Guid(UnmodifiableUint8ListView(Uint8List.fromList(guidAsBytes)));
:: [ ] [ ] ^^^^^^^^^^^^^^^^^^^^^^^^^
:: [ ] [ +573 ms] ../../../.pub-cache/hosted/pub.dev/archive-3.3.7/lib/src/bzip2/bzip2.dart:5:7: Error: Method not found: 'UnmodifiableUint8ListView'.
:: [ ] [ ] UnmodifiableUint8ListView(Uint8List(0));
:: [ ] [ ] ^^^^^^^^^^^^^^^^^^^^^^^^^
:: [ ] [ ] ../../../.pub-cache/hosted/pub.dev/archive-3.3.7/lib/src/bzip2/bzip2.dart:7:7: Error: Method not found: 'UnmodifiableUint32ListView'.
:: [ ] [ ] UnmodifiableUint32ListView(Uint32List(0));
:: [ ] [ ] ^^^^^^^^^^^^^^^^^^^^^^^^^^
:: [ ] [ ] ../../../.pub-cache/hosted/pub.dev/archive-3.3.7/lib/src/bzip2/bzip2.dart:9:7: Error: Method not found: 'UnmodifiableInt32ListView'.
:: [ ] [ ] UnmodifiableInt32ListView(Int32List(0));
:: [ ] [ ] ^^^^^^^^^^^^^^^^^^^^^^^^^
:: [ ] [+4152 ms] Persisting file store
:: [ ] [ +2 ms] Done persisting file store
:: [ ] [ +2 ms] Target kernel_snapshot_program failed: Exception
:: [ ] #0 KernelSnapshotProgram.build (package:flutter_tools/src/build_system/targets/common.dart:276:7)
:: [ ] <asynchronous suspension>
:: [ ] #1 _BuildInstance._invokeInternal (package:flutter_tools/src/build_system/build_system.dart:875:9)
:: [ ] <asynchronous suspension>
:: [ ] #2 Future.wait.<anonymous closure> (dart:async/future.dart:534:21)
:: [ ] <asynchronous suspension>
:: [ ] #3 _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:813:32)
:: [ ] <asynchronous suspension>
:: [ ] #4 Future.wait.<anonymous closure> (dart:async/future.dart:534:21)
:: [ ] <asynchronous suspension>
:: [ ] #5 _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:813:32)
:: [ ] <asynchronous suspension>
:: [ ] #6 Future.wait.<anonymous closure> (dart:async/future.dart:534:21)
:: [ ] <asynchronous suspension>
:: [ ] #7 _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:813:32)
:: [ ] <asynchronous suspension>
:: [ ] #8 Future.wait.<anonymous closure> (dart:async/future.dart:534:21)
:: [ ] <asynchronous suspension>
:: [ ] #9 _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:813:32)
:: [ ] <asynchronous suspension>
:: [ ] #10 Future.wait.<anonymous closure> (dart:async/future.dart:534:21)
:: [ ] <asynchronous suspension>
:: [ ] #11 _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:813:32)
:: [ ] <asynchronous suspension>
:: [ ] #12 Future.wait.<anonymous closure> (dart:async/future.dart:534:21)
:: [ ] <asynchronous suspension>
:: [ ] #13 _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:813:32)
:: [ ] <asynchronous suspension>
:: [ ] #14 FlutterBuildSystem.build (package:flutter_tools/src/build_system/build_system.dart:635:16)
:: [ ] <asynchronous suspension>
:: [ ] #15 AssembleCommand.runCommand (package:flutter_tools/src/commands/assemble.dart:328:32)
:: [ ] <asynchronous suspension>
:: [ ] #16 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1408:27)
:: [ ] <asynchronous suspension>
:: [ ] #17 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
:: [ ] <asynchronous suspension>
:: [ ] #18 CommandRunner.runCommand (package:args/command_runner.dart:212:13)
:: [ ] <asynchronous suspension>
:: [ ] #19 FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:420:9)
:: [ ] <asynchronous suspension>
:: [ ] #20 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
:: [ ] <asynchronous suspension>
:: [ ] #21 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:364:5)
:: [ ] <asynchronous suspension>
:: [ ] #22 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:130:9)
:: [ ] <asynchronous suspension>
:: [ ] #23 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
:: [ ] <asynchronous suspension>
:: [ ] #24 main (package:flutter_tools/executable.dart:93:3)
:: [ ] <asynchronous suspension>
:: [ ] [ +7 ms] "flutter assemble" took 12,038ms.
:: [ ] [ +5 ms]
:: [ ] #0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
:: [ ] #1 AssembleCommand.runCommand (package:flutter_tools/src/commands/assemble.dart:345:7)
:: [ ] <asynchronous suspension>
:: [ ] #2 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1408:27)
:: [ ] <asynchronous suspension>
:: [ ] #3 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
:: [ ] <asynchronous suspension>
:: [ ] #4 CommandRunner.runCommand (package:args/command_runner.dart:212:13)
:: [ ] <asynchronous suspension>
:: [ ] #5 FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:420:9)
:: [ ] <asynchronous suspension>
:: [ ] #6 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
:: [ ] <asynchronous suspension>
:: [ ] #7 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:364:5)
:: [ ] <asynchronous suspension>
:: [ ] #8 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:130:9)
:: [ ] <asynchronous suspension>
:: [ ] #9 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
:: [ ] <asynchronous suspension>
:: [ ] #10 main (package:flutter_tools/executable.dart:93:3)
:: [ ] <asynchronous suspension>
:: [ ] [ +187 ms] ensureAnalyticsSent: 185ms
:: [ ] [ ] Running 1 shutdown hook
:: [ ] [ ] Shutdown hooks complete
:: [ ] [ +12 ms] exiting with code 1
:: [ ] ninja: build stopped: subcommand failed.
:: [ +10 ms] Building Linux application... (completed in 17.1s)
:: [ +1 ms] "flutter linux" took 17,966ms.
:: [ +41 ms] Build process failed
:: [ ]
:: #0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
:: #1 _runBuild (package:flutter_tools/src/linux/build_linux.dart:210:5)
:: <asynchronous suspension>
:: #2 buildLinux (package:flutter_tools/src/linux/build_linux.dart:83:5)
:: <asynchronous suspension>
:: #3 BuildLinuxCommand.runCommand (package:flutter_tools/src/commands/build_linux.dart:87:5)
:: <asynchronous suspension>
:: #4 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1408:27)
:: <asynchronous suspension>
:: #5 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
:: <asynchronous suspension>
:: #6 CommandRunner.runCommand (package:args/command_runner.dart:212:13)
:: <asynchronous suspension>
:: #7 FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:420:9)
:: <asynchronous suspension>
:: #8 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
:: <asynchronous suspension>
:: #9 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:364:5)
:: <asynchronous suspension>
:: #10 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:130:9)
:: <asynchronous suspension>
:: #11 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
:: <asynchronous suspension>
:: #12 main (package:flutter_tools/executable.dart:93:3)
:: <asynchronous suspension>
::
::
:: [ +179 ms] ensureAnalyticsSent: 175ms
:: [ ] Running 1 shutdown hook
:: [ ] Shutdown hooks complete
:: [ +2 ms] exiting with code 1
Failed to run the build script for part 'moonhrm'.
Failed to execute pack in instance.
i’m fresher in this but as of my experience i faced error like this when my flutter project runs on lower version of flutter and i have higher version of flutter sdk installed on system.
so it is possible that while we commnd snapcraft it always download flutter sdk and build it and my project runs on flutter 3.10.5
please help me if you got something related!