! Unable to locate a Windows 10 SDK. If building fails, install the Windows 10 SDK in Visual Studio - flutter

I'm experiencing below error in my Wondows 10 PC during flutter installation.
I'm attaching pictures as well. I retried removal and reinstallation below versions as well as version 11 SDK.
Windows 10 SDK (10.0.20348.0)
Windows 10 SDK (10.0.19041.0)
Windows 10 SDK (10.0.18362.0)
ERROR
"! Unable to locate a Windows 10 SDK. If building fails, install the Windows 10 SDK in Visual Studio."
As I'm using office PC I can not reinstall windows in any way. Can anyone suggest me solution please?
I tried reinstallation as well as tried some forum solutions. Nothing worked for me!

I had the same issue and resolved it by installing Visual Studio Build Tools.
The Flutter documentation at https://docs.flutter.dev/get-started/install/windows#windows-setup advises to install either Visual Studio or Visual Studio Build Tools. Be sure to include the "Desktop development with C++" component when installing (you'll see it as an option during the installation process).

Related

Can't use intellisense for Unity because VS code can't find .NETWORK,Version=v4.71 even though it's installed?

Sorry, I'm a newbie here. I've spent a few hours now trying to get intellisense to work on VS code and have followed multiple Youtube guides. No luck. I've installed and uninstalled everything multiple times. I keep getting this message.
F:\Program Files\dotnet\sdk\6.0.401\Microsoft.Common.CurrentVersion.targets(1220,5): Error: The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
It tells me to install the developer pack, but it already is installed? Any idea of how to fix this? Please help.
Primarily, this has to do with the VS code extensions and Installation of the Unity editor on Unity HUB.
In VS code, install the extension: C# for Visual Studio Code (powered by OmniSharp).
While installing the unity editor through Unity HUB, make sure you are installing Microsoft visual studio community.

Visual Studio not installed and Install Desktop Development with C++ [duplicate]

My Flutter Doctor is saying:
Visual Studio - develop for Windows
X Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all
of its default components.
How can I fix this problem?
It's basically saying that if you want to develop your Flutter application for Windows you will need to install Visual Studio 2022 and while installing Visual Studio 2022 you will need to download this: Desktop development with C++
Also, you have to install the third link in this: Visual-studio
You could also get desktop development with the C++ tool after installing Visual Studio and then navigating to tool → Get tools and features → Desktop development with C++.
The error means install Visual Studio, and this is different from Visual Studio Code. It's an IDE from Microsoft.
For those who may be using a weak computer and can't afford to install the full Visual Studio, you only need to install a few components from Visual Studio to get Flutter to run on your computer without errors. These components are:
MSVC v142 - Visual Studio 2022 C++ x64/86 build tools.
Windows 10 SDK (for Windows 10 users)
C++ CMake tools for Windows.
In total, they should occupy around 8 GB or so.
As it states, you need to download Visual Studio (which is different from Visual Studio Code).
When installing it, remember to select the required package Desktop development with C++:
This will not prevent you from developing Mobile apps, but it's a requirement only for Windows Development.
Is unnecessary to install the "Desktop development with C++" if you don't want to develop desktop applications for Windows using Flutter.
If you only want to develop mobile apps using Flutter, you can run
flutter config --no-enable-windows-desktop
to disable the desktop support for your Flutter projects. After that, when you run the flutter doctor command again, you will no longer see the warning.
Read more at: https://fig.io/manual/flutter/config
Only two steps are required.
Install Visual Studio 2022 (Link: https://visualstudio.microsoft.com/downloads/)
Install Visual Studio Code (Link: https://code.visualstudio.com/)
Your code will run smoothly.
My solution was a bit simpler. Uninstall everything all build system's from VS. Then reinstall Visual Studio Community 2022, restart then try again. Might get a warning about nuget but it should fix the issue.
With the newest android installer "android-studio-2022.1.1.19-windows" there would be a jbr and jre folder existing, hence creating a link from jre to jbr would not work.
What you can do is copy the contents of the items in jbr into the jre folder and this would resolve the error.
Make sure to install Visual Studio Code.
Open the Visual Studio download page:

Visual Studio not installed; this is necessary for Windows development

My Flutter Doctor is saying:
Visual Studio - develop for Windows
X Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all
of its default components.
How can I fix this problem?
It's basically saying that if you want to develop your Flutter application for Windows you will need to install Visual Studio 2022 and while installing Visual Studio 2022 you will need to download this: Desktop development with C++
Also, you have to install the third link in this: Visual-studio
You could also get desktop development with the C++ tool after installing Visual Studio and then navigating to tool → Get tools and features → Desktop development with C++.
The error means install Visual Studio, and this is different from Visual Studio Code. It's an IDE from Microsoft.
For those who may be using a weak computer and can't afford to install the full Visual Studio, you only need to install a few components from Visual Studio to get Flutter to run on your computer without errors. These components are:
MSVC v142 - Visual Studio 2022 C++ x64/86 build tools.
Windows 10 SDK (for Windows 10 users)
C++ CMake tools for Windows.
In total, they should occupy around 8 GB or so.
As it states, you need to download Visual Studio (which is different from Visual Studio Code).
When installing it, remember to select the required package Desktop development with C++:
This will not prevent you from developing Mobile apps, but it's a requirement only for Windows Development.
Is unnecessary to install the "Desktop development with C++" if you don't want to develop desktop applications for Windows using Flutter.
If you only want to develop mobile apps using Flutter, you can run
flutter config --no-enable-windows-desktop
to disable the desktop support for your Flutter projects. After that, when you run the flutter doctor command again, you will no longer see the warning.
Read more at: https://fig.io/manual/flutter/config
Only two steps are required.
Install Visual Studio 2022 (Link: https://visualstudio.microsoft.com/downloads/)
Install Visual Studio Code (Link: https://code.visualstudio.com/)
Your code will run smoothly.
My solution was a bit simpler. Uninstall everything all build system's from VS. Then reinstall Visual Studio Community 2022, restart then try again. Might get a warning about nuget but it should fix the issue.
With the newest android installer "android-studio-2022.1.1.19-windows" there would be a jbr and jre folder existing, hence creating a link from jre to jbr would not work.
What you can do is copy the contents of the items in jbr into the jre folder and this would resolve the error.
Make sure to install Visual Studio Code.
Open the Visual Studio download page:

Android Studio and Eclipse ADT on Windows 10?

**Good day!
I am an IT student that is currently working on my Android app project and my laptop frequently notify me whenever I open to upgrade to Windows 10, (I am a genuine Windows 8.1 user installe on my Dell Vostro 5460).
Now, my question, is Android Studio and Eclipse ADT compatible with Windows 10? It is because I want the Windows 10 experience, but I have doubt that it will not be compatible with Android Studio and Eclipse ADT. Please help me with my question. Thanks you very much.**
Android Studio had I installed on the Windows 10 Technical Preview and it works. I could it open and develop a new Project.(I don't know what happend with a old project, but i think it must be work also.)
For a Tutorial how you install Ecplise i found this:
https://salesforce.stackexchange.com/questions/55390/how-do-i-install-eclipse-and-java-sdk-into-windows-10
Is it this what you mean?

Matlab 2014b and mex files, has anyone been able to use Visual Studio Express?

I know that Visual Studio Pro will allow you to compile mex files for MATLAB 2014b.
However I was wondering if anyone was able to use Visual Studio Express (which is free, as opposed to Pro which is not) to compile mex files? I tried the Windows SDK (recommended by mathworks), with no success.
Update: This is the error I get:
A problem occurred while installing selected Windows SDK components. Installation of the "Microsoft Windows SDK for Windows 7" product has reported the following error: Please refer to Samples\Setup\HTML\ConfigDetails.htm
Only I can't find that file.
Details:
Windows 7
MATLAB 2014b
Things I Did So Far:
SDK 7.1, I tried installing this not sure if it did not install correctly or was not actually a solution (from here: http://www.mathworks.com/support/compilers/R2014b/index.html)
Download the 30 day trial of Visual Studio Pro which is working
Yes. I used to use that exact combination if I recall. Make sure you get the right version of it though. Share the actual problem and maybe we can work around it.
This is another common issue with the Windows SDK 7.1 where it won't install if you have a newer Visual Studio 2010 runtime than version 10.0.30319, which is what it tries to install (you would think they would update the SDK installer!). You have to remove them before installing the SDK:
MsiExec.exe /passive /X{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5}
MsiExec.exe /passive /X{1D8E6291-B0D5-35EC-8441-6616F567A0F7}
Then the SDK will install and you can reinstall the latest 2010 runtimes.
There is an identical issue with the old DirectX SDK (June 2010) and the solution is much the same.