So I installed libraries through the Arduino interface (Sketch
> Include Library
> Manage Library
). Then I check: C:\Users\username\OneDrive\Documents\Arduino\Libraries
, and I confirm the new libraries are there.
However, when I compile I always get the error that Arduino cannot find the library, no matter which one I try to import.
I'm on Arduino 1.8.5, Windows. What am I missing?
-
2Does this answer help? arduino.stackexchange.com/questions/51813/…VE7JRO– VE7JRO2018年06月21日 02:29:43 +00:00Commented Jun 21, 2018 at 2:29
-
@VE7JRO OH MY GOD!! It was OneDrive!?? What the what!? Thanks, this solved it.vega– vega2018年06月23日 02:38:55 +00:00Commented Jun 23, 2018 at 2:38
1 Answer 1
This was a problem with using your OneDrive folder.
This is a known incompatibility between the Arduino IDE and Microsoft OneDrive. A fix should be available soon; in the meantime, move your Arduino sketches out of the OneDrive folder.
The issue with OneDrive folders has been resolved as of version 1.8.6.
https://www.arduino.cc/en/Main/ReleaseNotes
ARDUINO 1.8.6 2018年08月23日
[ide]
- Updated arduino-builder to 1.4.0:
- parallel build (improve compile speed)
- better reuse of already compiled files
- Windows: fixed build for sketch stored under OneDrive cloud folders
Simply update to a newer version of the Arduino IDE and you will be able to compile and upload your sketch.