Compiler failing to find header files for SSD1306

I’m trying to hook an SSD1306 to my XIAO and the compiler is failing to find the header files for the library. Any suggestions?

Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelsam/seeed_xiao.html
PLATFORM: Atmel SAM (5.1.1) > Seeeduino XIAO
HARDWARE: SAMD21G18A 48MHz, 32KB RAM, 256KB Flash
DEBUG: Current (atmel-ice) External (atmel-ice, blackmagic, jlink)
PACKAGES: 
 - framework-arduino-samd-seeed 1.7.6 
 - framework-cmsis 1.40500.0 (4.5.0) 
 - framework-cmsis-atmel 1.2.0 
 - toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 16 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <Adafruit SSD1306> 2.4.2
Building in release mode
Compiling .pio/build/seeed_xiao/src/main.cpp.o
Compiling .pio/build/seeed_xiao/lib054/Adafruit SSD1306/Adafruit_SSD1306.cpp.o
In file included from .pio/libdeps/seeed_xiao/Adafruit SSD1306/Adafruit_SSD1306.cpp:53:0:
.pio/libdeps/seeed_xiao/Adafruit SSD1306/Adafruit_SSD1306.h:39:10: fatal error: Adafruit_GFX.h: No such file or directory

So, did you add that dependency too? It can find the header file for the SSD1306, just not the GFX dependency.

lib_deps = 
  adafruit/Adafruit SSD1306 @ ^2.4.2
  adafruit/Adafruit GFX Library @ ^1.10.4
  adafruit/Adafruit BusIO @ ^1.7.1

Thanks! It turned out to be not referencing the correct libraries in the script.