Compilation error: exit status 1with esp32

I just downloaded 2.3.2, but no matter what code I upload, I can't write it into the esp32 nodeMCU-32s. I keep getting a Compilation error: exit status 1. What could be the reason for this?

mycode

void setup() {

  Serial.begin(115200);
 
  while (!Serial);
  

  Serial.println("Hello, ESP32!");
}

void loop() {

}

error message

�t�Χ䤣����w�����|�C
exit status 1

Compilation error: exit status 1


Exactly which board have you got selected in the IDE ?

I downloaded another ESP32 package and successfully executed it. Thank you for your response.