Unable to find wire.h while compiling adafruit library

So i’m trying to build libraries, my platform.ini is

[env:seeed_xiao]
platform = atmelsam
board = seeed_xiao
framework = arduino
build_flags = -DUSE_TINYUSB
lib_archive = no
lib_deps =
    Wire
    adafruit/Adafruit TinyUSB Library @ ^0.10.5
    bblanchon/ArduinoJson @ ^6.17.2
    ricaun/ArduinoUniqueID @ ^1.1.0
    electroniccats/TemperatureZero@^1.2.0
    adafruit/Adafruit BusIO @ ^1.8.2
    adafruit/Adafruit SSD1306 @ ^2.4.6
    paulstoffregen/OneWire@^2.3.6

but when compiling I get

Compiling .pio\build\seeed_xiao\lib856\Adafruit GFX Library\Adafruit_GrayOLED.cpp.o
Compiling .pio\build\seeed_xiao\lib856\Adafruit GFX Library\glcdfont.c.o
In file included from .pio\libdeps\seeed_xiao\Adafruit BusIO/Adafruit_BusIO_Register.h:9:0,
from .pio\libdeps\seeed_xiao\Adafruit BusIO\Adafruit_BusIO_Register.cpp:1:
.pio\libdeps\seeed_xiao\Adafruit BusIO/Adafruit_I2CDevice.h:5:10: fatal error: Wire.h: No such file or directory

I have included may header in main.cpp

#include <Adafruit_I2CDevice.h>
#include <Adafruit_BusIO_Register.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>

but not seeing any changes

why can’t it locate wire.h? seen other similar posts and tried steps suggested

David

Just added libs to a separate project and builds fine, think there is something I don’t understand going on here!

Hm adding adafruit/Adafruit GFX Library@^1.11.1 to lib_deps and doing the src/main.cpp as

#include <Arduino.h>
#include <Adafruit_TinyUSB.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include <ArduinoJson.h>

void setup() {

}

void loop() {

}

compiles fine for me, can you confirm?

No change for me, i created a new project and that’s fine so not clear what’s going on! i do seem to find that if I start a clean project issues go away but that never solves the underlying issue!