I mean like when ever i click pristine build in the vs code i am getting this below error
"Unable to build: SDK not found. Ensure that a valid SDK is used for the build configuration."
but the build is getting done when it is done in the terminal 
I mean like when ever i click pristine build in the vs code i am getting this below error
"Unable to build: SDK not found. Ensure that a valid SDK is used for the build configuration."
but the build is getting done when it is done in the terminal 
Hi Vishveshwaran
This happened to me if I tried to pristine build from a build configuration inside VS Code that references an SDK that is not installed anymore. The solution was to edit the build configuration and do a “Generate and build.”
Kind regards, Dani
i am using V 3.1.1 and my build configuration is configured to that only. and i tried creating a new one by deleting the old one but still same response
I think this is a path issue with nRF Connect. Do you have additional information?
Did you update the extension lately? I assume you work on Windows, don't you?
As I wrote, a “Generate and Build” solved it with my project.
I do work on windows,and moreover yea it is a path issue, to be exact the nrf sdk is not getting directed to the vs code, the machine is not recognizing the sdk, that is the exact issue. the issue started when i tried to update west in my terminal using west update. and that process also dint complete fully because i faced network issues.
Hello,
Can you please generate and upload the support information in nRF Connect for VS Code? It is generated by clicking this button:

Does that list v3.1.1 under "sdks", like this:
"sdks": [
{
"version": "v3.2.1",
"path": "c:\\ncs\\v3.2.1"
},
{
"version": "v3.2.0",
"path": "c:\\ncs\\v3.2.0"
},
{
"version": "v3.1.1",
"path": "c:\\ncs\\v3.1.1"
},
{
"version": "v3.1.0",
"path": "c:\\ncs\\v3.1.0"
If not, can you please try to run the following command? (does require a standalone installation of nrfutil):
nrfutil sdk-manager toolchain launch --terminal --ncs-version v3.1.1 (this will open a new window, use this one for the rest of the commands)
cd into the root folder of ncs v3.1.1, e.g. c:\ncs\v3.1.1
run "west update" and wait for it to finish. Does it indicate any errors? When this is done, close VS Code and relaunch it. Does it work now? If not, can you generate the support information once more, and upload this as well?
Best regards,
Edvin