0

I am facing the problem that I cannot build the application written in Flutter on macOS. I have used the flutter doctor to make the whole configuration complete and the result looks like this:

enter image description here

Next step that I have made was to change the flutter channel to master by:

flutter channel master && flutter upgrade

the last thing that I have made was to execute:

export set ENABLE_FLUTTER_DESKTOP=true

Now when I try to build the application (flutter run) I receive an error:

enter image description here

Does anyone know how to fix that?

EDIT

If this could help I have opened the project in the Intelij and I cannot run it either. I am even not able to select the target device.

enter image description here

Mazin Ibrahim
  • 7,433
  • 2
  • 33
  • 40
Patryk Jabłoński
  • 697
  • 10
  • 29
  • 1
    so is https://i.stack.imgur.com/KuZde.png the output of `flutter run` command only? or you typed `flutter devices` too (notice: `devices` not `device`)? tried `flutter run -v`? – pskink Jun 27 '19 at 16:36
  • Yes, it is the output of the `flutter run`. When I run `flutter devices` I receive a list of 2 devices - macOS and chrome. – Patryk Jabłoński Jun 27 '19 at 16:40
  • 1
    tried `flutter run -v`? -v == verbose – pskink Jun 27 '19 at 16:41
  • ok, `flutter run -v` helped me. I had the wrong `Mac development` certificate assigned to the project – Patryk Jabłoński Jun 27 '19 at 16:52
  • now you will discover the power of flutter: the app showing in 2 seconds after typing `flutter run` ;-) – pskink Jun 27 '19 at 16:53
  • 1
    For this part: "I have opened the project in the Intelij and I cannot run it either. I am even not able to select the target device." see https://github.com/google/flutter-desktop-embedding/blob/master/README.md#ides. There's no official desktop support in IntelliJ yet. – smorgan Jun 29 '19 at 02:37

0 Answers0