I don't think you gave me right one.
Since you are using ESP32, you have to download esp32 board and have to chage platform.txt for esp32.
If you already download it, the default path shall be
Please check my old platform.txt for esp32. (version 1.0.4 - latest one is 1.0.6)
It worked with the change in platform.txt
Thank you very much for the help and for clarifying the ideas. The platform.txt is available as an attachment in the messages.