In file included from /tmp/1080491509/KODIAQ_LED_OTA_VER1L/KODIAQ_LED_OTA_VER1L.ino:12:0:
/home/builder/Arduino/libraries/asyncelegantota_2_2_8/src/AsyncElegantOTA.h:12:27: fatal error: flash_hal.h: No such file or directory #include "flash_hal.h"
^
compilation terminated.
Multiple libraries were found for "ESPAsyncWebServer.h"
Used: /home/builder/opt/libraries/espasyncwebserver_3_1_0
Not used: /home/builder/opt/libraries/motorgo_mini_driver_1_1_0
Not used: /home/builder/opt/libraries/esp_async_webserver_2_10_8
Multiple libraries were found for "Hash.h"
Used: /home/builder/.arduino15/packages/esp8266/hardware/esp8266/2.5.0/libraries/Hash
Not used: /home/builder/opt/libraries/crypto_0_4_0
Not used: /home/builder/opt/libraries/koyn_0_2_0
Not used: /home/builder/opt/libraries/asyncelegantota_2_2_8
Not used: /home/builder/opt/libraries/stemi_hexapod_3_0_0
Not used: /home/builder/opt/libraries/ubitcoin_0_2_0
Not used: /home/builder/opt/libraries/uneurai_0_0_1
Error during build: exit status 1
The flash_hal.h file used by the "AsyncElegantOTA" library was added to the "esp8266" boards platform at the platform's 2.6.0 release:
Unfortunately, version 2.5.0 of the "esp8266" boards platform is installed in Arduino Cloud. This means you can't use the "AsyncElegantOTA" library in sketches on Arduino Cloud with ESP8266-based boards.
As you discovered, there is no problem using the library with a modern version of the "esp8266" boards platform which can be installed when using Arduino development software such as Arduino IDE locally on your computer. So that will be the best workaround to the problem.
If you are working with Arduino IDE 2.x and Arduino Cloud, you might find Arduino IDE's integration with the Arduino Cloud sketchbook feature useful: