\BME280: invalid library called for every sketch

Board: D1 Mini (clone)

Sketch: example blink without delay

Compiler output: first line references BME280. This shows up on every sketch.

loading library from c:\Users\John\Documents\Arduino\libraries\BME280: invalid library: no header files found
FQBN: esp8266:esp8266:d1_mini_clone
Using board 'd1_mini_clone' from platform in folder: C:\Users\John\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2
Using core 'esp8266' from platform in folder: C:\Users\John\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2

Have you looked in that directory to see if there are in fact no header files?

You need to reinstall the BME280 library (or remove it completely).

You can mimic this effect by creating an empty folder e.g.

c:\Users\John\Documents\Arduino\libraries\dummy_library

This suggests the “compiler” scans/indexes the library folder before knowing what is actually required. And if a library folder is an “invalid library” this will occur.

Thanks

indeed!