Repository: flutter
Issue: [Linux] Building snapcraft always show error app works in debug mode on linux
Labels: tool,platform-linux,a: build,a: release,P2,team-tool,triaged-tool



<details>
<summary>Error</summary>



```+ snapcraftctl build
flutter pub get
   Woah! You appear to be trying to run flutter as root.
   We strongly recommend running the flutter tool without superuser privileges.
  /
📎
Running "flutter pub get" in build...                              32.8s
flutter build linux --release -v -t lib/main.dart
   Woah! You appear to be trying to run flutter as root.
   We strongly recommend running the flutter tool without superuser privileges.
  /
📎
[ +146 ms] executing: uname -m
[  +68 ms] Exit code 0 from: uname -m
[   +1 ms] x86_64
[  +13 ms] executing: [/root/snap/flutter/common/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +9 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] d9111f64021372856901a1fd5bfbc386cade3318
[   +1 ms] executing: [/root/snap/flutter/common/flutter/] git tag --points-at d9111f64021372856901a1fd5bfbc386cade3318
[  +25 ms] Exit code 0 from: git tag --points-at d9111f64021372856901a1fd5bfbc386cade3318
[        ] 3.3.5
[  +97 ms] executing: [/root/snap/flutter/common/flutter/] git rev-parse --abbrev-ref --symbolic @{upstream}
[  +14 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{upstream}
[        ] origin/stable
[        ] executing: [/root/snap/flutter/common/flutter/] git ls-remote --get-url origin
[   +9 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[ +107 ms] Unable to locate an Android SDK.
[  +17 ms] executing: [/root/snap/flutter/common/flutter/] git rev-parse --abbrev-ref HEAD
[  +26 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[ +247 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.
[   +9 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.
[ +159 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[   +1 ms] 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 'FlutterSdk' is not required, skipping update.
[        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[   +6 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.
[ +109 ms] Skipping pub get: version match.
[  +82 ms] Found plugin bitsdojo_window at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/bitsdojo_window-0.1.2/
[   +9 ms] Found plugin bitsdojo_window_linux at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/bitsdojo_window_linux-0.1.3/
[  +15 ms] Found plugin bitsdojo_window_macos at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/bitsdojo_window_macos-0.1.3/
[   +7 ms] Found plugin bitsdojo_window_windows at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/bitsdojo_window_windows-0.1.5/
[  +21 ms] Found plugin connectivity_plus at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus-3.0.2/
[  +25 ms] Found plugin desktop_drop at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/desktop_drop-0.3.3/
[  +11 ms] Found plugin file_picker at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/file_picker-5.2.2/
[   +4 ms] Found plugin file_selector at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/file_selector-0.9.2+1/
[   +4 ms] Found plugin file_selector_ios at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/file_selector_ios-0.5.0+2/
[   +3 ms] Found plugin file_selector_linux at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/file_selector_linux-0.9.0+1/
[   +6 ms] Found plugin file_selector_macos at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/file_selector_macos-0.9.0/
[  +13 ms] Found plugin file_selector_web at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/file_selector_web-0.9.0/
[   +4 ms] Found plugin file_selector_windows at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/file_selector_windows-0.9.1/
[   +5 ms] Found plugin flutter_plugin_android_lifecycle at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-2.0.6/
[  +12 ms] Found plugin google_mobile_ads at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/google_mobile_ads-2.0.0/
[  +23 ms] Found plugin path_provider at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.11/
[   +3 ms] Found plugin path_provider_android at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_android-2.0.16/
[   +8 ms] Found plugin path_provider_ios at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_ios-2.0.10/
[   +4 ms] Found plugin path_provider_linux at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.1.7/
[   +3 ms] Found plugin path_provider_macos at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-2.0.6/
[   +4 ms] Found plugin path_provider_windows at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.1.3/
[   +3 ms] Found plugin permission_handler at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler-10.0.0/
[   +4 ms] Found plugin permission_handler_android at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler_android-10.0.0/
[   +3 ms] Found plugin permission_handler_apple at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler_apple-9.0.4/
[   +6 ms] Found plugin permission_handler_windows at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler_windows-0.1.0/
[  +32 ms] Found plugin url_launcher at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.1.4/
[   +3 ms] Found plugin url_launcher_android at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_android-6.0.17/
[   +4 ms] Found plugin url_launcher_ios at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_ios-6.0.17/
[   +2 ms] Found plugin url_launcher_linux at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-3.0.1/
[   +2 ms] Found plugin url_launcher_macos at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-3.0.1/
[   +3 ms] Found plugin url_launcher_web at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-2.0.12/
[   +2 ms] Found plugin url_launcher_windows at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-3.0.1/
[   +2 ms] Found plugin user_messaging_platform at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/user_messaging_platform-1.2.1/
[ +103 ms] Found plugin bitsdojo_window at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/bitsdojo_window-0.1.2/
[   +1 ms] Found plugin bitsdojo_window_linux at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/bitsdojo_window_linux-0.1.3/
[   +2 ms] Found plugin bitsdojo_window_macos at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/bitsdojo_window_macos-0.1.3/
[   +2 ms] Found plugin bitsdojo_window_windows at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/bitsdojo_window_windows-0.1.5/
[   +8 ms] Found plugin connectivity_plus at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus-3.0.2/
[  +10 ms] Found plugin desktop_drop at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/desktop_drop-0.3.3/
[   +5 ms] Found plugin file_picker at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/file_picker-5.2.2/
[   +1 ms] Found plugin file_selector at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/file_selector-0.9.2+1/
[   +1 ms] Found plugin file_selector_ios at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/file_selector_ios-0.5.0+2/
[   +1 ms] Found plugin file_selector_linux at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/file_selector_linux-0.9.0+1/
[   +1 ms] Found plugin file_selector_macos at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/file_selector_macos-0.9.0/
[   +1 ms] Found plugin file_selector_web at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/file_selector_web-0.9.0/
[   +1 ms] Found plugin file_selector_windows at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/file_selector_windows-0.9.1/
[   +3 ms] Found plugin flutter_plugin_android_lifecycle at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-2.0.6/
[   +4 ms] Found plugin google_mobile_ads at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/google_mobile_ads-2.0.0/
[  +10 ms] Found plugin path_provider at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.11/
[   +1 ms] Found plugin path_provider_android at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_android-2.0.16/
[   +1 ms] Found plugin path_provider_ios at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_ios-2.0.10/
[   +3 ms] Found plugin path_provider_linux at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.1.7/
[   +2 ms] Found plugin path_provider_macos at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-2.0.6/
[   +2 ms] Found plugin path_provider_windows at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.1.3/
[   +1 ms] Found plugin permission_handler at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler-10.0.0/
[   +1 ms] Found plugin permission_handler_android at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler_android-10.0.0/
[   +2 ms] Found plugin permission_handler_apple at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler_apple-9.0.4/
[   +2 ms] Found plugin permission_handler_windows at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler_windows-0.1.0/
[  +10 ms] Found plugin url_launcher at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.1.4/
[   +1 ms] Found plugin url_launcher_android at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_android-6.0.17/
[   +1 ms] Found plugin url_launcher_ios at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_ios-6.0.17/
[   +1 ms] Found plugin url_launcher_linux at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-3.0.1/
[   +1 ms] Found plugin url_launcher_macos at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-3.0.1/
[   +2 ms] Found plugin url_launcher_web at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-2.0.12/
[   +1 ms] Found plugin url_launcher_windows at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-3.0.1/
[   +1 ms] Found plugin user_messaging_platform at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/user_messaging_platform-1.2.1/
[  +90 ms] Found plugin bitsdojo_window at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/bitsdojo_window-0.1.2/
[   +1 ms] Found plugin bitsdojo_window_linux at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/bitsdojo_window_linux-0.1.3/
[   +1 ms] Found plugin bitsdojo_window_macos at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/bitsdojo_window_macos-0.1.3/
[   +2 ms] Found plugin bitsdojo_window_windows at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/bitsdojo_window_windows-0.1.5/
[   +3 ms] Found plugin connectivity_plus at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus-3.0.2/
[   +5 ms] Found plugin desktop_drop at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/desktop_drop-0.3.3/
[   +9 ms] Found plugin file_picker at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/file_picker-5.2.2/
[   +3 ms] Found plugin file_selector at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/file_selector-0.9.2+1/
[   +1 ms] Found plugin file_selector_ios at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/file_selector_ios-0.5.0+2/
[   +1 ms] Found plugin file_selector_linux at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/file_selector_linux-0.9.0+1/
[   +1 ms] Found plugin file_selector_macos at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/file_selector_macos-0.9.0/
[   +3 ms] Found plugin file_selector_web at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/file_selector_web-0.9.0/
[   +1 ms] Found plugin file_selector_windows at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/file_selector_windows-0.9.1/
[   +1 ms] Found plugin flutter_plugin_android_lifecycle at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-2.0.6/
[   +3 ms] Found plugin google_mobile_ads at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/google_mobile_ads-2.0.0/
[   +9 ms] Found plugin path_provider at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.11/
[   +1 ms] Found plugin path_provider_android at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_android-2.0.16/
[   +1 ms] Found plugin path_provider_ios at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_ios-2.0.10/
[   +2 ms] Found plugin path_provider_linux at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.1.7/
[   +2 ms] Found plugin path_provider_macos at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-2.0.6/
[   +1 ms] Found plugin path_provider_windows at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.1.3/
[   +1 ms] Found plugin permission_handler at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler-10.0.0/
[   +1 ms] Found plugin permission_handler_android at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler_android-10.0.0/
[   +2 ms] Found plugin permission_handler_apple at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler_apple-9.0.4/
[   +2 ms] Found plugin permission_handler_windows at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler_windows-0.1.0/
[   +8 ms] Found plugin url_launcher at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.1.4/
[        ] Found plugin url_launcher_android at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_android-6.0.17/
[   +1 ms] Found plugin url_launcher_ios at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_ios-6.0.17/
[        ] Found plugin url_launcher_linux at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-3.0.1/
[   +1 ms] Found plugin url_launcher_macos at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-3.0.1/
[   +1 ms] Found plugin url_launcher_web at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-2.0.12/
[        ] Found plugin url_launcher_windows at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-3.0.1/
[   +1 ms] Found plugin user_messaging_platform at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/user_messaging_platform-1.2.1/
[ +119 ms] Generating /root/parts/plagiarismremover/build/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[ +141 ms] 💪 Building with sound null safety 💪
[  +40 ms] Building Linux application...
[  +37 ms] executing: [build/linux/x64/release/] cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DFLUTTER_TARGET_PLATFORM=linux-x64
/root/parts/plagiarismremover/build/linux
[+2475 ms] -- The CXX compiler identification is Clang 10.0.0
[  +36 ms] -- Check for working CXX compiler: /snap/flutter/current/usr/bin/clang++
[ +266 ms] -- Check for working CXX compiler: /snap/flutter/current/usr/bin/clang++ -- works
[   +4 ms] -- Detecting CXX compiler ABI info
[ +187 ms] -- Detecting CXX compiler ABI info - done
[  +32 ms] -- Detecting CXX compile features
[   +5 ms] -- Detecting CXX compile features - done
[  +28 ms] -- Found PkgConfig: /snap/flutter/current/usr/bin/pkg-config (found version "0.29.1") 
[   +1 ms] -- Checking for module 'gtk+-3.0'
[  +35 ms] --   Found gtk+-3.0, version 3.24.20
[ +127 ms] -- Checking for module 'glib-2.0'
[  +25 ms] --   Found glib-2.0, version 2.64.6
[  +60 ms] -- Checking for module 'gio-2.0'
[  +26 ms] --   Found gio-2.0, version 2.64.6
[  +93 ms] -- Configuring done
[ +172 ms] -- Generating done
[   +1 ms] -- Build files have been written to: /root/parts/plagiarismremover/build/build/linux/x64/release
[  +47 ms] executing: ninja -C build/linux/x64/release install
[  +14 ms] ninja: Entering directory `build/linux/x64/release'



[+102056 ms] [1/20] Generating /root/parts/plagiarismremover/build/linux/flutter/ephemeral/libflutter_linux_gtk.so,
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_basic_message_channel.h,
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_binary_codec.h,
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_binary_messenger.h,
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_dart_project.h,
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_engine.h,
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_json_message_codec.h,
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_json_method_codec.h,
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_message_codec.h,
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_method_call.h,
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_method_channel.h,
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_method_codec.h,
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_method_response.h,
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_plugin_registrar.h,
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_plugin_registry.h,
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_standard_message_codec.h,
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_standard_method_codec.h,
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_string_codec.h,
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_value.h,
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_view.h,
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/flutter_linux.h, _phony_
[  +19 ms] FAILED: /root/parts/plagiarismremover/build/linux/flutter/ephemeral/libflutter_linux_gtk.so
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_basic_message_channel.h
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_binary_codec.h
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_binary_messenger.h
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_dart_project.h
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_engine.h
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_json_message_codec.h
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_json_method_codec.h
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_message_codec.h
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_method_call.h
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_method_channel.h
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_method_codec.h
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_method_response.h
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_plugin_registrar.h
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_plugin_registry.h
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_standard_message_codec.h
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_standard_method_codec.h
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_string_codec.h
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_value.h
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/fl_view.h
/root/parts/plagiarismremover/build/linux/flutter/ephemeral/flutter_linux/flutter_linux.h flutter/_phony_
[  +13 ms] cd /root/parts/plagiarismremover/build/build/linux/x64/release/flutter && /snap/flutter/130/usr/bin/cmake -E env
FLUTTER_ROOT=/root/snap/flutter/common/flutter PROJECT_DIR=/root/parts/plagiarismremover/build DART_OBFUSCATION=false
TRACK_WIDGET_CREATION=true TREE_SHAKE_ICONS=true PACKAGE_CONFIG=/root/parts/plagiarismremover/build/.dart_tool/package_config.json
FLUTTER_TARGET=lib/main.dart /root/snap/flutter/common/flutter/packages/flutter_tools/bin/tool_backend.sh linux-x64 Release
[   +2 ms]    Woah! You appear to be trying to run flutter as root.
[        ]    We strongly recommend running the flutter tool without superuser privileges.
[        ]   /
[   +7 ms] 📎
[        ] [ +120 ms] executing: uname -m
[   +2 ms] [  +70 ms] Exit code 0 from: uname -m
[        ] [   +1 ms] x86_64
[        ] [  +12 ms] executing: [/root/snap/flutter/common/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [  +11 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [        ] d9111f64021372856901a1fd5bfbc386cade3318
[        ] [   +1 ms] executing: [/root/snap/flutter/common/flutter/] git tag --points-at d9111f64021372856901a1fd5bfbc386cade3318
[        ] [  +23 ms] Exit code 0 from: git tag --points-at d9111f64021372856901a1fd5bfbc386cade3318
[        ] [        ] 3.3.5
[        ] [ +122 ms] Unable to locate an Android SDK.
[        ] [  +14 ms] executing: [/root/snap/flutter/common/flutter/] git rev-parse --abbrev-ref HEAD
[        ] [  +23 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] [        ] stable
[        ] [ +151 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [   +1 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [   +2 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [   +9 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.
[        ] [ +213 ms] executing: [/root/snap/flutter/common/flutter/] git rev-parse --abbrev-ref --symbolic @{upstream}
[        ] [  +13 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{upstream}
[        ] [        ] origin/stable
[        ] [        ] executing: [/root/snap/flutter/common/flutter/] git ls-remote --get-url origin
[        ] [   +8 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] [        ] https://github.com/flutter/flutter.git
[        ] [   +2 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.
[   +1 ms] [        ] Artifact Instance of 'FlutterSdk' 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.
[        ] [   +3 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[   +1 ms] [        ] 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.
[   +1 ms] [        ] 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.
[   +1 ms] [        ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[        ] [  +97 ms] Initializing file store
[   +1 ms] [  +42 ms] Skipping target: gen_localizations
[   +1 ms] [  +48 ms] gen_dart_plugin_registrant: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated
contents: /root/parts/plagiarismremover/build/.dart_tool/package_config_subset}
[   +1 ms] [   +9 ms] unpack_linux: Starting due to {}
[        ] [ +185 ms] unpack_linux: Complete
[   +1 ms] [ +502 ms] Found plugin bitsdojo_window at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/bitsdojo_window-0.1.2/
[   +3 ms] [   +8 ms] Found plugin bitsdojo_window_linux at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/bitsdojo_window_linux-0.1.3/
[   +4 ms] [   +3 ms] Found plugin bitsdojo_window_macos at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/bitsdojo_window_macos-0.1.3/
[        ] [  +18 ms] Found plugin bitsdojo_window_windows at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/bitsdojo_window_windows-0.1.5/
[   +1 ms] [  +11 ms] Found plugin connectivity_plus at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus-3.0.2/
[        ] [  +28 ms] Found plugin desktop_drop at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/desktop_drop-0.3.3/
[        ] [   +7 ms] Found plugin file_picker at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/file_picker-5.2.2/
[        ] [   +3 ms] Found plugin file_selector at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/file_selector-0.9.2+1/
[        ] [   +2 ms] Found plugin file_selector_ios at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/file_selector_ios-0.5.0+2/
[        ] [   +2 ms] Found plugin file_selector_linux at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/file_selector_linux-0.9.0+1/
[        ] [   +2 ms] Found plugin file_selector_macos at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/file_selector_macos-0.9.0/
[        ] [   +3 ms] Found plugin file_selector_web at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/file_selector_web-0.9.0/
[   +1 ms] [   +2 ms] Found plugin file_selector_windows at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/file_selector_windows-0.9.1/
[   +1 ms] [   +3 ms] Found plugin flutter_plugin_android_lifecycle at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-2.0.6/
[   +1 ms] [  +17 ms] Found plugin google_mobile_ads at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/google_mobile_ads-2.0.0/
[   +1 ms] [  +28 ms] Found plugin path_provider at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.11/
[        ] [   +2 ms] Found plugin path_provider_android at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_android-2.0.16/
[   +1 ms] [   +2 ms] Found plugin path_provider_ios at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_ios-2.0.10/
[        ] [   +2 ms] Found plugin path_provider_linux at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.1.7/
[        ] [   +2 ms] Found plugin path_provider_macos at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-2.0.6/
[        ] [   +3 ms] Found plugin path_provider_windows at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.1.3/
[        ] [   +2 ms] Found plugin permission_handler at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler-10.0.0/
[   +1 ms] [   +2 ms] Found plugin permission_handler_android at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler_android-10.0.0/
[   +1 ms] [   +1 ms] Found plugin permission_handler_apple at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler_apple-9.0.4/
[        ] [   +3 ms] Found plugin permission_handler_windows at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler_windows-0.1.0/
[   +1 ms] [  +28 ms] Found plugin url_launcher at /root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.1.4/
[        ] [   +2 ms] Found plugin url_launcher_android at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_android-6.0.17/
[   +1 ms] [   +5 ms] Found plugin url_launcher_ios at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_ios-6.0.17/
[   +1 ms] [   +2 ms] Found plugin url_launcher_linux at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-3.0.1/
[   +1 ms] [   +1 ms] Found plugin url_launcher_macos at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-3.0.1/
[        ] [   +4 ms] Found plugin url_launcher_web at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-2.0.12/
[        ] [   +3 ms] Found plugin url_launcher_windows at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-3.0.1/
[        ] [   +2 ms] Found plugin user_messaging_platform at
/root/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/user_messaging_platform-1.2.1/
[   +1 ms] [  +83 ms] gen_dart_plugin_registrant: Complete
[        ] [   +2 ms] kernel_snapshot: Starting due to {}
[   +3 ms] [  +32 ms] /root/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev
/root/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/snapshots/frontend_server.dart.snapshot --sdk-root
/root/snap/flutter/common/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk_product/ --target=flutter
--no-print-incremental-dependencies -Ddart.vm.profile=false -Ddart.vm.product=true --compact-async --aot --tfa --packages
/root/parts/plagiarismremover/build/.dart_tool/package_config.json --output-dill
/root/parts/plagiarismremover/build/.dart_tool/flutter_build/894e1d9dbdcef07e6ea764954a8b6fb2/app.dill --depfile
/root/parts/plagiarismremover/build/.dart_tool/flutter_build/894e1d9dbdcef07e6ea764954a8b6fb2/kernel_snapshot.d --source
/root/parts/plagiarismremover/build/.dart_tool/flutter_build/dart_plugin_registrant.dart --source
package:flutter/src/dart_plugin_registrant.dart
-Dflutter.dart_plugin_registrant=file:///root/parts/plagiarismremover/build/.dart_tool/flutter_build/dart_plugin_registrant.dart
--verbosity=error package:plagiarismremover/main.dart
[   +9 ms] [+96944 ms] Persisting file store
[        ] [  +12 ms] Done persisting file store
[        ] [  +21 ms] Target kernel_snapshot failed: Exception
[        ]            #0      KernelSnapshot.build (package:flutter_tools/src/build_system/targets/common.dart:244:7)
[        ]            <asynchronous suspension>
[        ]            #1      _BuildInstance._invokeInternal (package:flutter_tools/src/build_system/build_system.dart:839:9)
[        ]            <asynchronous suspension>
[        ]            #2      Future.wait.<anonymous closure> (dart:async/future.dart:522:21)
[        ]            <asynchronous suspension>
[        ]            #3      _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:777:32)
[        ]            <asynchronous suspension>
[        ]            #4      Future.wait.<anonymous closure> (dart:async/future.dart:522:21)
[        ]            <asynchronous suspension>
[        ]            #5      _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:777:32)
[        ]            <asynchronous suspension>
[   +1 ms]            #6      Future.wait.<anonymous closure> (dart:async/future.dart:522:21)
[   +1 ms]            <asynchronous suspension>
[        ]            #7      _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:777:32)
[        ]            <asynchronous suspension>
[        ]            #8      FlutterBuildSystem.build (package:flutter_tools/src/build_system/build_system.dart:606:16)
[        ]            <asynchronous suspension>
[        ]            #9      AssembleCommand.runCommand (package:flutter_tools/src/commands/assemble.dart:316:32)
[        ]            <asynchronous suspension>
[   +1 ms]            #10     FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1209:27)
[        ]            <asynchronous suspension>
[        ]            #11     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
[        ]            <asynchronous suspension>
[        ]            #12     CommandRunner.runCommand (package:args/command_runner.dart:209:13)
[        ]            <asynchronous suspension>
[        ]            #13     FlutterCommandRunner.runCommand.<anonymous closure>
(package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
[        ]            <asynchronous suspension>
[        ]            #14     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
[        ]            <asynchronous suspension>
[        ]            #15     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
[        ]            <asynchronous suspension>
[        ]            #16     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
[   +1 ms]            <asynchronous suspension>
[        ]            #17     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
[   +1 ms]            <asynchronous suspension>
[   +1 ms]            #18     main (package:flutter_tools/executable.dart:91:3)
[   +1 ms]            <asynchronous suspension>
[   +1 ms] [ +107 ms] "flutter assemble" took 98,545ms.
[   +1 ms] [  +21 ms] 
[   +1 ms]            #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
[        ]            #1      AssembleCommand.runCommand (package:flutter_tools/src/commands/assemble.dart:333:7)
[   +1 ms]            <asynchronous suspension>
[   +1 ms]            #2      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1209:27)
[        ]            <asynchronous suspension>
[   +1 ms]            #3      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
[   +1 ms]            <asynchronous suspension>
[   +1 ms]            #4      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
[        ]            <asynchronous suspension>
[   +1 ms]            #5      FlutterCommandRunner.runCommand.<anonymous closure>
(package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
[        ]            <asynchronous suspension>
[        ]            #6      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
[        ]            <asynchronous suspension>
[        ]            #7      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
[        ]            <asynchronous suspension>
[        ]            #8      run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
[        ]            <asynchronous suspension>
[        ]            #9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
[        ]            <asynchronous suspension>
[        ]            #10     main (package:flutter_tools/executable.dart:91:3)
[        ]            <asynchronous suspension>
[        ] [ +336 ms] ensureAnalyticsSent: 325ms
[   +6 ms] [   +2 ms] Running shutdown hooks
[   +1 ms] [        ] Shutdown hooks complete
[  +49 ms] [        ] exiting with code 1
[        ] ninja: build stopped: subcommand failed.
[  +70 ms] Building Linux application... (completed in 106.0s)
[   +1 ms] "flutter linux" took 107,497ms.
[   +6 ms] Build process failed
[   +2 ms] 
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
           #1      _runBuild (package:flutter_tools/src/linux/build_linux.dart:185:5)
           <asynchronous suspension>
           #2      buildLinux (package:flutter_tools/src/linux/build_linux.dart:78:5)
           <asynchronous suspension>
           #3      BuildLinuxCommand.runCommand (package:flutter_tools/src/commands/build_linux.dart:85:5)
           <asynchronous suspension>
           #4      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1209:27)
           <asynchronous suspension>
           #5      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #6      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
           <asynchronous suspension>
           #7      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
           <asynchronous suspension>
           #8      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #9      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
           <asynchronous suspension>
           #10     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
           <asynchronous suspension>
           #11     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #12     main (package:flutter_tools/executable.dart:91:3)
           <asynchronous suspension>
           
           
[ +270 ms] ensureAnalyticsSent: 255ms
[   +1 ms] Running shutdown hooks
[        ] Shutdown hooks complete
[   +1 ms] exiting with code 1
Failed to run 'flutter build linux --release -v -t lib/main.dart' for 'plagiarismremover': Exited with code 1.
Verify that the part is using the correct parameters and try again.
Run the same command again with --debug to shell into the environment if you wish to introspect this failure.
An error occurred when trying to execute 'sudo -H -i env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=True snapcraft snap' with 'multipass': returned exit code 2.
```

</details>

<details>
  <summary>snapcraft.yaml</summary>

```
name: plagiarismremover
version: '1.0.1'
summary: Remove plagiarism from your content with this plagiarism remover app.
description: This plagiarism remover can help you remove plagiarism from your content, be it an article, blog post or an e-book. 

confinement: strict
base: core18

parts:
  plagiarismremover:
    plugin: flutter
    source: .
    flutter-target: lib/main.dart

apps:
  plagiarismremover:
    command: plagiarismremover
    extensions: [flutter-stable]
    plugs:
    - network
    - home
    - desktop
   
    
```

</details>
<details>
<summary>snapcraft.desktop</summary>


```
[Desktop Entry]
Name=Plagiarism Remover
Comment=Plagiarism Remover
Exec=plagiarismremover
Icon=${SNAP}/meta/gui/plagiarismremover.png
Terminal=false
Type=Application
Categories=Productivity; 

```
</details>

Also Asked questions on snapcraft community forum but their community is not even reply on any question