报错信息:In file included from xxxxxxxxxxxxxxxxxxxxxxxxx.ino:14: c:\Users\admin\Documents\Arduino\libraries\ESP32_BLE_Arduino\src/BLEDevice.h:12:10: fatal error: esp_gap_ble_api.h: No such file or directory 12 | #include <esp_gap_ble_api.h> // ESP32 BLE | ^~~~~~~~~~~~~~~~~~~ compilation terminated. exit status 1 Compilation error: exit status 1报错

解决方案:之前随便下载安装了ESP32_BLE_Arduino。ESP32C3开发ble应该使用esp32的库,当安装了ESP32_BLE_Arduino时,就会产生冲突。要从ardunio里,点卸载,把这个库卸载了。只删文件夹不行,还会安装回来!

Logo

智能硬件社区聚焦AI智能硬件技术生态,汇聚嵌入式AI、物联网硬件开发者,打造交流分享平台,同步全国赛事资讯、开展 OPC 核心人才招募,助力技术落地与开发者成长。

更多推荐