Architecture or board not supported

I am working on updating firmware for esp32 via OTA, after including all the respective libraries it is throwing this error.

error: #error Architecture or board not supported.
#error Architecture or board not supported.

Is it because of any extensions which are not available or anything else i am not aware of?

Perhaps one of the libraries you are using does not support the ESP32? That error format looks very much like it might be an error hard-coded into the library. Can you provide a list of libraries you are compiling, and the full compile log (put triple backticks ``` in before and after the compile log so it gets formatted as a code block properly).