[GH-ISSUE #1509] fatal error: esp_arduino_version.h: No such file or directory #1287

Closed
opened 2026-02-28 01:29:25 +03:00 by kerem · 4 comments
Owner

Originally created by @SyukurCode on GitHub (Oct 13, 2022).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1509

Basic Infos

Hardware

WiFimanager Branch/Release: Master

Esp8266/Esp32:

Hardware: ESP32

Core Version: 2.4.0, staging

Description

Problem description

Settings in IDE

Module: DOIT ESP32 DEVKIT V1.

Additional libraries:

Sketch

#BEGIN
#include <WiFiManager.h> // https://github.com/tzapu/WiFiManager


void setup() {
    // WiFi.mode(WIFI_STA); // explicitly set mode, esp defaults to STA+AP
    // it is a good practice to make sure your code sets wifi mode how you want it.

    // put your setup code here, to run once:
    Serial.begin(115200);
    
    //WiFiManager, Local intialization. Once its business is done, there is no need to keep it around
    WiFiManager wm;

    // reset settings - wipe stored credentials for testing
    // these are stored by the esp library
    // wm.resetSettings();

    // Automatically connect using saved credentials,
    // if connection fails, it starts an access point with the specified name ( "AutoConnectAP"),
    // if empty will auto generate SSID, if password is blank it will be anonymous AP (wm.autoConnect())
    // then goes into a blocking loop awaiting configuration and will return success result

    bool res;
    // res = wm.autoConnect(); // auto generated AP name from chipid
    // res = wm.autoConnect("AutoConnectAP"); // anonymous ap
    res = wm.autoConnect("AutoConnectAP","password"); // password protected ap

    if(!res) {
        Serial.println("Failed to connect");
        // ESP.restart();
    } 
    else {
        //if you get here you have connected to the WiFi    
        Serial.println("connected...yeey :)");
    }

}

void loop() {
    // put your main code here, to run repeatedly:   
}
#END

Debug Messages

Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: "DOIT ESP32 DEVKIT V1, 80MHz, 921600, None, Default"





















Multiple libraries were found for "WiFi.h"

 Used: C:\Users\User\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.6\libraries\WiFi

 Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\libraries\WiFi

In file included from C:\Users\User\AppData\Local\Temp\arduino_modified_sketch_684509\Basic.ino:1:0:

C:\Users\User\Documents\Arduino\libraries\WiFiManager-2.0.13-beta/WiFiManager.h:127:37: fatal error: esp_arduino_version.h: No such file or directory

compilation terminated.

exit status 1

Error compiling for board DOIT ESP32 DEVKIT V1.

Originally created by @SyukurCode on GitHub (Oct 13, 2022). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1509 ### Basic Infos #### Hardware WiFimanager Branch/Release: Master Esp8266/Esp32: Hardware: ESP32 Core Version: 2.4.0, staging ### Description Problem description ### Settings in IDE Module: DOIT ESP32 DEVKIT V1. Additional libraries: ### Sketch ```cpp #BEGIN #include <WiFiManager.h> // https://github.com/tzapu/WiFiManager void setup() { // WiFi.mode(WIFI_STA); // explicitly set mode, esp defaults to STA+AP // it is a good practice to make sure your code sets wifi mode how you want it. // put your setup code here, to run once: Serial.begin(115200); //WiFiManager, Local intialization. Once its business is done, there is no need to keep it around WiFiManager wm; // reset settings - wipe stored credentials for testing // these are stored by the esp library // wm.resetSettings(); // Automatically connect using saved credentials, // if connection fails, it starts an access point with the specified name ( "AutoConnectAP"), // if empty will auto generate SSID, if password is blank it will be anonymous AP (wm.autoConnect()) // then goes into a blocking loop awaiting configuration and will return success result bool res; // res = wm.autoConnect(); // auto generated AP name from chipid // res = wm.autoConnect("AutoConnectAP"); // anonymous ap res = wm.autoConnect("AutoConnectAP","password"); // password protected ap if(!res) { Serial.println("Failed to connect"); // ESP.restart(); } else { //if you get here you have connected to the WiFi Serial.println("connected...yeey :)"); } } void loop() { // put your main code here, to run repeatedly: } #END ``` ### Debug Messages ``` Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: "DOIT ESP32 DEVKIT V1, 80MHz, 921600, None, Default" Multiple libraries were found for "WiFi.h" Used: C:\Users\User\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.6\libraries\WiFi Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\libraries\WiFi In file included from C:\Users\User\AppData\Local\Temp\arduino_modified_sketch_684509\Basic.ino:1:0: C:\Users\User\Documents\Arduino\libraries\WiFiManager-2.0.13-beta/WiFiManager.h:127:37: fatal error: esp_arduino_version.h: No such file or directory compilation terminated. exit status 1 Error compiling for board DOIT ESP32 DEVKIT V1. ```
kerem 2026-02-28 01:29:25 +03:00
  • closed this issue
  • added the
    bug
    ESP32
    labels
Author
Owner

@tablatronix commented on GitHub (Oct 13, 2022):

I am assuming this goes away in arduino 2.x

<!-- gh-comment-id:1277936098 --> @tablatronix commented on GitHub (Oct 13, 2022): I am assuming this goes away in arduino 2.x
Author
Owner

@emersongcardona commented on GitHub (Oct 14, 2022):

I have the same trouble and yes, it is in arduino 2.x

<!-- gh-comment-id:1278509912 --> @emersongcardona commented on GitHub (Oct 14, 2022): I have the same trouble and yes, it is in arduino 2.x
Author
Owner

@tablatronix commented on GitHub (Oct 14, 2022):

Include arduino.h?

What enviroment is this?

<!-- gh-comment-id:1278953640 --> @tablatronix commented on GitHub (Oct 14, 2022): Include arduino.h? What enviroment is this?
Author
Owner

@tablatronix commented on GitHub (Oct 14, 2022):

ok I need to add a <2.x check here

<!-- gh-comment-id:1279222662 --> @tablatronix commented on GitHub (Oct 14, 2022): ok I need to add a <2.x check here
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#1287
No description provided.