COMPILATION stuck on "compiling sketch" esp32-CAM

have an AI Thinker ESP32-CAM module. I’ve installed the ESP32 board support package by Espressif in the Arduino IDE and added my Edge Impulse project to the library. I opened my project via **File > Examples > [Project Name] > esp32 > esp32_camera.

In the code, I commented out #define CAMERA_MODEL_ESP_EYE and uncommented #define CAMERA_MODEL_AI_THINKER. However, whenever I try to upload the sketch, the process gets stuck at “Compiling sketch.” How can I resolve this issue?