Fatal error: stdbool.h: No such file or directory

I have used the Arduino IDE several times succesfully. Since yesterday, I get this error message:

In file included from C:\Users\simon\AppData\Local\Temp\arduino\sketches\3015F1C610A607164D25DD0C60AE38E7\sketch\CameraWebServer.ino.cpp:1:
C:\Users\simon\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\cores\esp32/Arduino.h:23:10: fatal error: stdbool.h: No such file or directory
 #include <stdbool.h>
          ^~~~~~~~~~~
compilation terminated.

exit status 1

Compilation error: exit status 1

I already deinstalled the Arduino IDE, rebooted, installed again, but still get this error.

Which board have you got selected in the IDE ?

Try out these steps::

  1. Do complete Uninstall Arduino IDE and then re-install the Arduino IDE (use Arduino IDE 2.2.1). Make sure that you install all the dependencies that shows up after the installation. If your machine is running Windows 11, check How to Fix Arduino Problem on Windows 11 and grant the IDE admin right.

  2. Install your Arduino board's Package Core, it contains the board's driver.

  3. Use a good quality data USB cable to connect the board to the computer without anything connected or wired to the board. Charging/bad USB cable will make it impossible for your computer to detect your board.

  4. Make sure you select the Arduino board and the port it is connected to before uploading a sketch.