How can i use lib_deps correct

excuse me, english is not my mother tongue.

i added “adafruit st7735 library” in platform.ini:

lib_deps =
    adafruit/Adafruit ST7735 and ST7789 Library @ ^1.10.3

some libraries can be downloaded to .pio/libdeps directory:

but when i build the project, the library “adafruit gfx” that “adafruit st7735 library” depends on cannot be found:

.pio/libdeps/genericGD32E230C8/Adafruit ST7735 and ST7789 Library/Adafruit_ST77xx.h:30:10: fatal error: Adafruit_GFX.h: No such file or directory

it has obviously been automatically downloaded, but cannot found, i don’t know why.

and then i tried to fix it:

build_flags =

ok, now it can found those two library, but:

.pio/libdeps/genericGD32E230C8/Adafruit BusIO/Adafruit_I2CDevice.h:5:10: fatal error: Wire.h: No such file or directory

i’m so tired!!!
so what is the correct way to use lib_deps?

i really need your help, thank you guys.

What is your platformio.ini? It might also be that those libraries explicitly limit the platforms you can use them on, in which case you would have to turn off the library compatibility checker (docs).

oh, i understand. thank you so much.
i used a third-party gd32 package, it can be work now.