Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.1.18: Can't build exemple on windows #11

Closed
poka-IT opened this issue May 2, 2022 · 4 comments
Closed

v0.1.18: Can't build exemple on windows #11

poka-IT opened this issue May 2, 2022 · 4 comments

Comments

@poka-IT
Copy link

poka-IT commented May 2, 2022

On new version 0.1.18, I can't build exemple on windows anymore:

Launching lib\main.dart on Windows in debug mode...
Nuget.exe not found, trying to download or use cached version.
C:\Users\poka\dev\kflutter\kplayer\kplayer\example\build\windows\packages\Microsoft.Windows.ImplementationLibrary\include\wil/cppwinrt.h(82,75): error C2338: Please include wil/cppwinrt.h before including any C++/WinRT headers [C:\Users\poka\dev\kflutter\kplayer\kplayer\example\build\windows\plugins\audioplayers_windows\audioplayers_windows_plugin.vcxproj]
C:\Users\poka\dev\kflutter\kplayer\kplayer\example\build\windows\packages\Microsoft.Windows.ImplementationLibrary\include\wil/cppwinrt.h(101,75): error C2338: C++/WinRT external catch clause already defined outside of WIL [C:\Users\poka\dev\kflutter\kplayer\kplayer\example\build\windows\plugins\audioplayers_windows\audioplayers_windows_plugin.vcxproj]
C:\Users\poka\dev\kflutter\kplayer\kplayer\example\build\windows\packages\Microsoft.Windows.ImplementationLibrary\include\wil/cppwinrt.h(82,75): error C2338: Please include wil/cppwinrt.h before including any C++/WinRT headers [C:\Users\poka\dev\kflutter\kplayer\kplayer\example\build\windows\plugins\audioplayers_windows\audioplayers_windows_plugin.vcxproj]
C:\Users\poka\dev\kflutter\kplayer\kplayer\example\build\windows\packages\Microsoft.Windows.ImplementationLibrary\include\wil/cppwinrt.h(101,75): error C2338: C++/WinRT external catch clause already defined outside of WIL [C:\Users\poka\dev\kflutter\kplayer\kplayer\example\build\windows\plugins\audioplayers_windows\audioplayers_windows_plugin.vcxproj]
2
C:\Users\poka\dev\kflutter\kplayer\kplayer\example\windows\flutter\ephemeral\.plugin_symlinks\dart_vlc\dartvlc\internal/events.h(68,11): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\poka\dev\kflutter\kplayer\kplayer\example\build\windows\dart_vlc_core\dart_vlc_core.vcxproj]

I worked with version 0.1.11, so probably due to your change from just_audio to audioplayers.

@mohamadlounnas
Copy link
Member

the main kplayer packege still use just_audio and dart_vlc
are u useing kplayer_with_audioplayers?

@mohamadlounnas
Copy link
Member

can u try audioplayers alone?
there is file for example audioplayers_test.dart uncommented and try use only audioplayers,
to see if the problem by the audioplayers packege

there is some solution may work, run:

flutter clean
flutter pub get

then delete windows folder, vscode should recreated again when select windows
also visual studio may need repair, just open visual studio installer and select repair

@poka-IT
Copy link
Author

poka-IT commented May 2, 2022

I tried clean, get, delete and recreate windows folder, same problem.
And same problem with audioplayer exemple package, so the problem is from them.
So I opened an issue to them: bluefireteam/audioplayers#1114

I'm not on kplayer_with_audioplayers but just kflutter.

@poka-IT
Copy link
Author

poka-IT commented May 2, 2022

Ok sorry I just understood your answer, the problem came from my VSCode installation.

@poka-IT poka-IT closed this as completed May 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants