3. Run 'flutter run -d linux'
**Expected results:** <!-- what did you want to see? -->
Application should launch for desktop view in ubuntu
**Actual results:** <!-- what did you see? -->
<details>
<summary>Logs</summary>
<!--
Run your application with `flutter run --verbose` and attach all the
log output below between the lines with the backticks. If there is an
exception, please see if the error message includes enough information
to explain how to solve the issue.
-->
Launching lib/main.dart on Linux in debug mode...
/home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:80:29: error: unknown type name 'GdkMonitor'
/home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:111:21: error: use of undeclared identifier 'gdk_display_get_n_monitors'
/home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:113:5: error: unknown type name 'GdkMonitor'
/home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:113:27: error: use of undeclared identifier 'gdk_display_get_monitor'; did you mean 'gdk_display_get_screen'?
/home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:139:3: error: unknown type name 'GdkMonitor'
/home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:139:37: error: use of undeclared identifier 'gdk_display_get_primary_monitor'; did you mean 'gdk_screen_get_primary_monitor'?
/home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:139:69: error: cannot initialize a parameter of type 'GdkScreen ' (aka '_GdkScreen ') with an lvalue of type 'GdkDisplay ' (aka '_GdkDisplay ')
/home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:140:20: error: use of undeclared identifier 'gdk_display_get_n_monitors'
/home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:142:5: error: unknown type name 'GdkMonitor'
/home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:142:27: error: use of undeclared identifier 'gdk_display_get_monitor'; did you mean 'gdk_display_get_screen'?
/home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:345:7: error: use of undeclared identifier 'strcmp'
/home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:347:14: error: use of undeclared identifier 'strcmp'
/home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:349:14: error: use of undeclared identifier 'strcmp'
/home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:351:14: error: use of undeclared identifier 'strcmp'
/home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:353:14: error: use of undeclared identifier 'strcmp'
/home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:355:14: error: use of undeclared identifier 'strcmp'
/home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:357:14: error: use of undeclared identifier 'strcmp'
/home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:359:14: error: use of undeclared identifier 'strcmp'
/home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:361:14: error: use of undeclared identifier 'strcmp'
Building Linux application...
Exception: Build process failed
<!-- Finally, paste the output of running `flutter doctor -v` here. -->
**flutter doctor -v**
[✓] Flutter (Channel stable, 2.0.6, on Linux, locale en_IN)
• Flutter version 2.0.6 at /home/sukhdeep/flutter/flutter
• Framework revision 1d9032c7e1 (2 days ago), 2021-04-29 17:37:58 -0700
• Engine revision 05e680e202
• Dart version 2.12.3
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /home/sukhdeep/Android/Sdk
• Platform android-30, build-tools 30.0.3
• ANDROID_HOME = /home/sukhdeep/Android/Sdk
• Java binary at: /usr/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_292-8u292-b10-0ubuntu1~16.04.1-b10)
! Some Android licenses not accepted. To resolve this, run: flutter doctor
--android-licenses
[✓] Chrome - develop for the web
• Chrome at google-chrome
[✓] Linux toolchain - develop for Linux desktop
• clang version 3.8.0-2ubuntu4 (tags/RELEASE_380/final)
• cmake version 3.17.3
• ninja version 1.10.0
• pkg-config version 0.29.1
Steps to Reproduce
flutter create -a java --org com.example provider_pack
.environment: sdk: ">=2.7.0 <3.0.0"
dependencies: flutter: sdk: flutter cupertino_icons: ^1.0.2 window_size: #added plugins git: url: git://github.com/google/flutter-desktop-embedding.git path: plugins/window_size
dev_dependencies: flutter_test: sdk: flutter
flutter: uses-material-design: true
Launching lib/main.dart on Linux in debug mode... /home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:80:29: error: unknown type name 'GdkMonitor' /home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:111:21: error: use of undeclared identifier 'gdk_display_get_n_monitors' /home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:113:5: error: unknown type name 'GdkMonitor' /home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:113:27: error: use of undeclared identifier 'gdk_display_get_monitor'; did you mean 'gdk_display_get_screen'? /home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:139:3: error: unknown type name 'GdkMonitor' /home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:139:37: error: use of undeclared identifier 'gdk_display_get_primary_monitor'; did you mean 'gdk_screen_get_primary_monitor'? /home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:139:69: error: cannot initialize a parameter of type 'GdkScreen ' (aka '_GdkScreen ') with an lvalue of type 'GdkDisplay ' (aka '_GdkDisplay ') /home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:140:20: error: use of undeclared identifier 'gdk_display_get_n_monitors' /home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:142:5: error: unknown type name 'GdkMonitor' /home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:142:27: error: use of undeclared identifier 'gdk_display_get_monitor'; did you mean 'gdk_display_get_screen'? /home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:345:7: error: use of undeclared identifier 'strcmp' /home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:347:14: error: use of undeclared identifier 'strcmp' /home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:349:14: error: use of undeclared identifier 'strcmp' /home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:351:14: error: use of undeclared identifier 'strcmp' /home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:353:14: error: use of undeclared identifier 'strcmp' /home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:355:14: error: use of undeclared identifier 'strcmp' /home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:357:14: error: use of undeclared identifier 'strcmp' /home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:359:14: error: use of undeclared identifier 'strcmp' /home/sukhdeep/project/git/bt/flutter2/ThirdParty/provider_pack/linux/flutter/ephemeral/.plugin_symlinks/window_size/linux/window_size_plugin.cc:361:14: error: use of undeclared identifier 'strcmp' Building Linux application...
Exception: Build process failed
[✓] Flutter (Channel stable, 2.0.6, on Linux, locale en_IN) • Flutter version 2.0.6 at /home/sukhdeep/flutter/flutter • Framework revision 1d9032c7e1 (2 days ago), 2021-04-29 17:37:58 -0700 • Engine revision 05e680e202 • Dart version 2.12.3
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3) • Android SDK at /home/sukhdeep/Android/Sdk • Platform android-30, build-tools 30.0.3 • ANDROID_HOME = /home/sukhdeep/Android/Sdk • Java binary at: /usr/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_292-8u292-b10-0ubuntu1~16.04.1-b10) ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Chrome - develop for the web • Chrome at google-chrome
[✓] Linux toolchain - develop for Linux desktop • clang version 3.8.0-2ubuntu4 (tags/RELEASE_380/final) • cmake version 3.17.3 • ninja version 1.10.0 • pkg-config version 0.29.1
[!] Android Studio (not installed) • Android Studio not found; download from https://developer.android.com/studio/index.html (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
[✓] VS Code (version 1.55.2) • VS Code at /usr/share/code • Flutter extension version 3.21.0
[✓] Connected device (2 available) • Linux (desktop) • linux • linux-x64 • Linux • Chrome (web) • chrome • web-javascript • Google Chrome 90.0.4430.93
! Doctor found issues in 2 categories.