-
-
Notifications
You must be signed in to change notification settings - Fork 893
Nuget not Found and CMake Error #819
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
Comments
This has nothing to do with the download of nuget.exe or the fact that it is not on the PATH. This message is expected if nuget.exe is not on the PATH, but it is only informative, not an error. |
Do you have multiple installations of VS? This is really weird, and I don't know exactly what is happening. Does it work if you do have nuget.exe on your path? |
Unfortunately not, I've added nuget to my path. The installation error disappears but the second error persists. I did have VS 2019 installed before upgrading to VS 2022 a few weeks ago. But during this testing, I've only had 1 VS installed. |
I can't reproduce this, so I don't know what is happening. Can you try to run the full command from the command line? |
Succeeds but builds still fail with:
|
What happens if you run the cppwinrt command? Maybe this is a missing SDK? |
Hmmm, am I supposed to see anything happen? The cppwinrt.exe file is there. When I run the command, there's no output but it seems to succeed. |
This is what is weird then. |
No worries! Let's wait and see if anyone else has this issue. |
I have the same issue. Only in windows mode. If I remove permission_handler from pubspec.yaml, it runs ok. |
Same error here before updating Visual Studio: After updating Visual Studio Installer and Visual Studio 2019 the error was gone. |
Same error here before reinstall Visual Studio 2022. At first,i am using vs 2022 I hope this may help you. |
I had the same problem again today after I executed But this time the error message is more detailed,Maybe it's because I have http_proxy|https_proxy configured in path.
|
I removed this package and related codes when build on windows and add them on mobiles now ... |
set no_proxy var ! |
I download a nuget.exe file and add it to PATH , it can build apps now. |
Fixed after downloading Nuget.exe manually and adding it to the PATH |
For me helped manual downloading of nuget like in comment #819 (comment), then adding the |
This randomly started happening to me today; didn't change anything. Very strange. |
Adding to the path manually didn't help |
Sometimes this happens to me, sometimes it doesn't. When it does happen, sometimes it recovers, sometimes it crashes out. |
I also had the problem building windows desktop. Updated VS2019, added nuget.exe to path, added nuget.org to VS sources, still compile error. Uninstalled VS2019, Installed VS2022 using VS Installer & C++ workloads. Compiles fine. |
I also needed to delete the windows directory in my project and had to run |
what happend?
|
This is usually caused by an configuration error regarding NuGet package manager. The permission_handler_windows package makes use of NuGet to download the I am not really sure what causes the configuration error, however here are some steps that can be verified:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
</packageSources>
</configuration>
If this all fails please run |
@mvanbeusekom hello, does vstudio 2019 not able to run this? |
Seeing this issue again with Flutter v3.19 update. This is a good reminder that it's always worthwhile to file an issue and document your solutions. Because often times you find it in the search results when you run into the same issue again. |
Thank you.
Have a nice day
Atenciosamente,
[SoftServ Sistemas]<http://www.softserv.com.br/>[Google+]<https://plus.google.com/+SoftservBr1994> [Curta nossa página] <https://www.facebook.com/softservsistemas/> [Conecte-se ao Linkedin] <https://www.linkedin.com/company/softserv-sistemas> [Siga-nos no Twitter] <https://twitter.com/softserv1994> [Siga-nos no Instagram] <https://www.instagram.com/softservsistemas> [Inscreva-se em nosso canal] <http://www.youtube.com/c/SoftservBr1994>
André Fonseca
Pesquisa e Desenvolvimento
Suporte
(11) 3995 5200
(21) 3195 5200
(31) 3195 5200
(41) 3195 5200
(51) 3195 5200
Comercial
0800 727 2099
São Paulo
Rio de Janeiro
Minas Gerais
Paraná
Rio Grande do Sul
Brasil
[Veja no ***@***.***,-43.271048,17z/data=!4m5!1m2!2m1!1ssoftserv!3m1!1s0x0000000000000000:0xa22666f336c06271?hl=pt-BR>
Sede
Av. Pastor Martin Luther King Jr. 126 Office 2000 Sala 226,
Shopping Nova América, Rio de janeiro - RJ, 20765-971
[http://softserv.com.br/email/assinatura/PENSE_IMPRIMIR.gif]
…________________________________
________________________________
De: Ray Li ***@***.***>
Enviado: quarta-feira, 21 de fevereiro de 2024 18:27
Para: Baseflow/flutter-permission-handler ***@***.***>
Cc: Andre Fonseca ***@***.***>; Comment ***@***.***>
Assunto: Re: [Baseflow/flutter-permission-handler] Nuget not Found and CMake Error (Issue #819)
Seeing this issue again with Flutter v3.19 update.
It seems to be related to Flutter updates. Windows will build successfully and then fail after updating to the newest version of Flutter.
This is a good reminder that it's always worthwhile to file an issue and document your solutions. Because often times you find it in the search results when you run into the same issue again.
—
Reply to this email directly, view it on GitHub<#819 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AHLA7IWTZZ7OLYK2LQW4TK3YUZREBAVCNFSM5RSEHYDKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJVG44TQNRSGAZA>.
You are receiving this because you commented.Message ID: ***@***.***>
|
🐛 Bug Report
Building Permissions Handler on Windows fails due to 2 errors.
CC @azchohfi
Expected behavior
Building for Windows works.
Reproduction steps
The text was updated successfully, but these errors were encountered: