VsCode build工程报错:platform io fatal error: Arduino.h: No such file or directory 解决记录。
platform io fatal error: Arduino.h: No such file or directory
简单记录一下,使用VSCode+Platform IO开发ESP32过程中出现报错:platform io fatal error: Arduino.h: No such file or directory 的情况。
在VsCode商店要安装PlatformIO、C/C++、Arduino插件。
笔者按照网络上其他的操作方式都做了,如下载g++编辑器等等。结果还是有问题,最终发现在你对应的ESP32工程中,禁用除了 Microsoft 开发之外的C/C++插件,并且禁用 Espressif IDF 插件就可以了。如果你同时安装了PlatformIO IDE 和 Espressif IDF插件,在报错的工作区中禁用其中一个就可以了,不许卸载其中任何一个。禁用方式请自行百度。
仅做参考,有问题可以留言大家互相讨论学习。