Hi @farahm_43. As was mentioned earlier in this thread by @van_der_decken, unfortunately there is a bug in the sketch compiler that causes it to fail to find the library when it is installed under a path that contains this sort of character.
The workaround will be to configure Arduino IDE to use a different path to store libraries. I'll provide instructions you can follow to do that:
- Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
The "Preferences" dialog will open. - Click the "BROWSE" button on the right side of the "Sketchbook location" field.
The "Select a new sketchbook location" dialog will open. - Select a folder in any location that contains only basic ASCII characters (the characters
A
-z
,0
-9
,_
,-
,.
are safe).
Make sure to pick a location that will be safe to store your files since, in addition to containing installed libraries, the sketchbook is a convenient location to save your sketches.
- Click the "Choose" button in the "Select a new sketchbook location" dialog.
- Click the "OK" button in the "Preferences" dialog.
- Move all the files from the folder at the path of the old sketchbook location:
to the folder at the path of the new sketchbook location you set in the Arduino IDE preferences.c:\Users\USER\OneDrive\文档\Arduino
Once you have finished performing the instructions above, try compiling your sketch again. Hopefully the compilation will be successful this time.