[SOLVED] ESP32 webserver demo-code old AsyncTCP-Lib caused compiler-errors

HI everybody

I tried to compile a ESP32-Webserver demo code

#include <WiFi.h>
#include <ESPAsyncWebServer.h>

const char* ssid = "Test1";
const char* password = "password";

AsyncWebServer server(80);

AsyncEventSource events("/events");

void initWiFi() {
  Serial.begin(115200);
 
  WiFi.softAP(ssid, password);
  IPAddress myIP = WiFi.softAPIP();
  Serial.println("AP IP address: ");
  Serial.println(myIP);
  server.begin();
  delay(1000);
  }

const char SendHTML[] PROGMEM = R"rawliteral(
<!DOCTYPE HTML><html>
<head>
  <title>Test</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <style>
    html { font-family: Helvetica; display: inline-block; margin: 0xp auto; text-align: center;}";
  body{margin-top: 50px;} h1 { color: #444444;margin-bottom: 50px auto 30px;}";
  </style>
  </head>
  <body>
  <style>
    button {
      font-size: 50px;
      padding: 10px;
      border-radius: 20px;
      margin: 20px;
    }
    
  </style>
  <h1>Hello</h1>
  <button id="B1">1</button>


  <button id="B2">2</button>


  <button id="B3">3</button>
  <script>

</script>
</body>
</html>)rawliteral";

void setup() {
  Serial.begin(115200);
  initWiFi();

  server.on("/", HTTP_GET, [](AsyncWebServerRequest *request){
    request->send_P(200, "text/html", SendHTML);
  });

  events.onConnect([](AsyncEventSourceClient *client){
    if(client->lastId()){
    }});
  server.addHandler(&events);
  server.begin();
}

void loop() {}

and get a lot of compiler-error-messages

C:\Users\Stefan\Documents\Arduino\libraries\AsyncTCP\src\AsyncTCP.cpp:259:27: error: field 'call' has incomplete type 'tcpip_api_call'

     struct tcpip_api_call call;

                           ^

C:\Users\Stefan\Documents\Arduino\libraries\AsyncTCP\src\AsyncTCP.cpp:259:12: note: forward declaration of 'struct tcpip_api_call'

     struct tcpip_api_call call;


In file included from C:\Users\Stefan\Documents\Arduino\libraries\AsyncTCP\src\AsyncTCP.cpp:24:0:

C:\Users\Stefan\Documents\Arduino\libraries\AsyncTCP\src\AsyncTCP.h:164:17: error: candidate is: static void AsyncClient::_s_dns_found(const char*, _ip_addr*, void*)

     static void _s_dns_found(const char *name, struct _ip_addr *ipaddr, void *arg);

                 ^

Multiple include guards may be useful for:

C:\Users\Stefan\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4/tools/sdk/include/freertos/freertos/list.h

C:\Users\Stefan\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4/tools/sdk/include/lwip/arch/vfs_lwip.h

C:\Users\Stefan\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4/tools/sdk/include/newlib/sys/string.h

c:\users\stefan\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\lib\gcc\xtensa-esp32-elf\5.2.0\include-fixed\limits.h

c:\users\stefan\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\cctype

c:\users\stefan\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\clocale

Using library WiFi at version 1.0 in folder: C:\Users\Stefan\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi 
Using library ESPAsyncWebServer at version 1.2.0 in folder: C:\Users\Stefan\Documents\Arduino\libraries\ESPAsyncWebServer 
Using library FS at version 1.0 in folder: C:\Users\Stefan\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\FS 
Using library AsyncTCP at version 1.0.0 in folder: C:\Users\Stefan\Documents\Arduino\libraries\AsyncTCP 
exit status 1
Error compiling for board ESP32 Dev Module.

the code is based on this Webserver-code from randon nerd tutorials

where I did download the needed libaries and installed them with sketch - add zip-library
as linked on the RNT-website to GitHub

https://github.com/me-no-dev/ESPAsyncWebServer/archive/master.zip
https://github.com/me-no-dev/AsyncTCP/archive/master.zip

Is this caused by a mismatch between ESP32-core and these libraries?
Whenever I coded something for ESP32 that uses ESP-NOW everything worked fine
best regards Stefan

finally found a solution.
I had an older version of the AsyncTCP-lib.
So I deleted all AsyncTCP and all ESPAsyncWebServer-libs and folders on my hardsisk and installed them new. Now it compiles.