Help with .math using arduino ide for esp32 in vscode

Hi, i’m using platformio in Vs Code, to program ESP32 with arduino IDE. I got the follwing warnings:
for Print.cpp: “The math library must be enabled by CONFIG_NEWLIB_LIBC to be included in the build”
I can’t find where to enable it.

Also if i use print(“data”,HEX) i have this error: “no instance of overloaded function “HardwareSerial::print” matches the argument list”, i assume is becacause of the math lib problem, but not sure. The methos is defined in the lib.