PlatformIO Community

Error while building a code

Hi I was checking serial port definition by right clicking on Serial in a code.
After checking something might have clicked by me and now the following error is coming while building a project.
Pls suggest how to fix it ?

Building in release mode
Archiving .pio\build\esp32doit-devkit-v1\lib51e\libSqlite3Esp32.a
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\HardwareSerial.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\IPAddress.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\IPv6Address.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\MD5Builder.cpp.o
C:\Users\Gururaj.v.platformio\packages\framework-arduinoespressif32\cores\esp32\HardwareSerial.cpp:27:22: error: redefinition of ‘HardwareSerial Serial’
HardwareSerial Serial(1);
^
C:\Users\Gururaj.v.platformio\packages\framework-arduinoespressif32\cores\esp32\HardwareSerial.cpp:26:16: note: ‘HardwareSerial Serial’ previously declared here
HardwareSerial Serial(0);
^
*** [.pio\build\esp32doit-devkit-v1\FrameworkArduino\HardwareSerial.cpp.o] Error 1
========================================= [FAILED] Took 9.30 seconds =========================================
The terminal process “C:\Users\Gururaj.v.platformio\penv\Scripts\platformio.exe ‘run’” terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

Just remove this folder and rebuild the project.

Thanks Max…Issue resolved