HELP! 'avr-gcc-ar' is not recognized as an internal or external command

I’m running a VS Code on Win 10 desktop, installed latest version of pio.
When I was trying to build an example blink project for Arduino UNO, these error messages pop up!

‘avr-gcc-ar’ is not recognized as an internal or external command,
operable program or batch file.
*** [.pioenvs\uno\libFrameworkArduinoVariant.a] Error 1
Compiling .pioenvs\uno\FrameworkArduino\HardwareSerial.o
‘avr-g++’ is not recognized as an internal or external command,
operable program or batch file.
*** [.pioenvs\uno\src\main.o] Error 1
‘avr-g++’ is not recognized as an internal or external command,
operable program or batch file.
*** [.pioenvs\uno\FrameworkArduino\CDC.o] Error 1
‘avr-g++’ is not recognized as an internal or external command,
operable program or batch file.
*** [.pioenvs\uno\FrameworkArduino\HardwareSerial.o] Error 1
=================================================== [ERROR] Took 1.27 seconds ===================================================
The terminal process terminated with exit code: 1

And green squiggle under #include “Arduino.h”

What should I do to solve this , I’m totally new in this, please help me!

Any help would be appreciated.

Thank you.

Could you try to remove %HOME_DIR%\.platformio and start build again?

I had the same issue and I can confirm this worked for me