ESPAsyncWebServer compilation error (example "simple_server.ino")

I'm guessing you installed the wrong ESP32 package. Go with the correct one. And, go with the latest pre 3.x version - 2.0.17. So: