I am trying to compile for an ESP8266, but the IDE is selecting the wrong libraries. It can see the correct ones, and I have set the correct board in the tools menu. I get the following message on compile
Multiple libraries were found for "Wire.h" Used: /Users/paul/Documents/Arduino/libraries/Wire Not used: /Users/paul/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/libraries/Wire
Which is causing the following compile error
fatal error: avr/io.h: No such file or directory -> candidates:  #include <avr/io.h>
If I rename the AVI Wire library folder, then the IDE will select the esp Wire library, which is a work around for now, but is there a better fix for this?
Using IDE v 1.8.10 on Mac Catalina