血泪之arduino库文件找不到ArduinoJSON.h: No such file or directory错误原因
#include <ArduinoJson.h>
始终报这个错误,
C:\techxixi_project\Arduino\test\camer\camertoserver\camertoserver.ino:6:10: fatal error: ArduinoJSON.h: No such file or directory
6 | #include <ArduinoJSON.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
exit status 1
Compilation error: ArduinoJSON.h: No such file or directory
郁闷啊,始终就不行,删了真个库重新下载
然后项目目录换来换去。折腾都不行。
经过一下午血泪史,最后惊呆了。原因是真的找不到文件。
本人环境是windows下的arduino,一直没想过是大小写会影响库文件。
最终原因是,居然区分大小写,windows下居然区分大小写。
好吧,这确实是我的问题。
更换为和文件夹内的相同大小写,文件正确找到,编译通过,大爷的,骂别人还是骂自己好呢。