0

I have added Windows platform support to my existing Flutter project with flutter create --platforms=windows . but when I try to run it, it gives me the following error:

C:\Users\sabbi\dev\flutter_app\windows\flutter\ephemeral\.plugin_symlinks\connectivity_plus_windows\windows\connectivity_plus_windows_plugin.cpp(94,3): error C2597: illegal reference to non-static member '`anonymous-namespace'::ConnectivityPlusWindowsPlugin::_eventChannel' [C:\Users\sabbi\dev\flutter_app\build\windows\plugins\connectivity_plus_windows\connectivity_plus_windows_plugin.vcxproj]

I've already tried flutter clean but it did nothing.

Fabio
  • 376
  • 6
  • 19
  • That's a C++ error. If the generated code is faulty, you should write a bug report. However, for a start, extract and provide a [mcve]. Without, it's impossible to say whether your code/actions are at fault or flutter's. – Ulrich Eckhardt Jul 15 '22 at 15:55
  • 1
    @UlrichEckhardt It was the connectivity package that was causing the error. I replaced it with connectivity_plus package and it worked – Fabio Jul 15 '22 at 16:25

0 Answers0