Help! I followed every advices and version.h error still occurs

Very new to Arduino and Blynk, and have reviewed advices from multiple sources.

I am facing the version.h error even after multiple reinstallation of Arduino IDE and manual addition of the most recent blynk library.

The error did not occur when I am using the older version of Blynk library (0.5.0) but I realized the server has changed and it is impossible to connect to the blynk cloud, but when I am using the most recent library obtained from github, this problem (BlynkSimpleEsp8266.h:18:21: fatal error: version.h: No such file or directory) occurs. Please help.

Details :
• ESP8266 (NodeMCU 1.0 12E), WiFi
• Arduino IDE 2.0.3
• Blynk Library v1.0.0

#define BLYNK_TEMPLATE_ID "TMPLslmrR9go"
#define BLYNK_DEVICE_NAME "Monitor"
#define BLYNK_AUTH_TOKEN "auth"

#define BLYNK_PRINT Serial
#include <Blynk.h>
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

char auth[] = "auth";
char ssid[] = "wifi";
char pass[] = "password";
const int MPU_addr=0x68;
int16_t AcX,AcY,AcZ,Tmp,GyX,GyY,GyZ;
int minVal=265;
int maxVal=402;
double x;
double y;
double z;
void setup()

Blynk.begin(auth, ssid, pass);

void loop()


int xAng = map(AcX,minVal,maxVal,-90,90);
int yAng = map(AcY,minVal,maxVal,-90,90);
int zAng = map(AcZ,minVal,maxVal,-90,90);
x= RAD_TO_DEG * (atan2(-yAng, -zAng)+PI);
y= RAD_TO_DEG * (atan2(-xAng, -zAng)+PI);
z= RAD_TO_DEG * (atan2(-yAng, -xAng)+PI);
Serial.print("AngleX= ");
Serial.print("AngleY= ");
Serial.print("AngleZ= ");

Blynk.virtualWrite(V2, x);
Blynk.virtualWrite(V3, y);
Blynk.virtualWrite(V4, z);


The error message:
In file included from C:\Users\Acer\AppData\Local\Temp.arduinoIDE-unsaved2023015-6404-169k6zq.zecv\sketch_jan15a\sketch_jan15a.ino:9:0:
c:\Users\Acer\Documents\Arduino\libraries\Blynk\src/BlynkSimpleEsp8266.h:18:21: fatal error: version.h: No such file or directory
#include <version.h>
compilation terminated.

exit status 1

Compilation error: exit status 1


It’s best to always use the latest version of the library.
Last version 1.1.0

1 Like

Thank you for replying. When I use version 1.1.0, another error occurs in addition with the version.h error which is BlynkTimer.h:38:44: error: missing binary operator before token “(”
#if defined(__has_include) && __has_include()

Are you using the latest version of the ESP8266 core?

1 Like

Ah yes the latest core is installed, which is the 2.3.0 version

Go to tools/board/boards manager, scroll down to the core, and see what version it is.

1 Like

Sorry it seems I accidentally edited my previous reply instead of replying to this reply, yes it was the latest core that is available on my arduino ide which is 2.3.0

The latest version of the ESP8266 core is 3.1.1

1 Like

Can I manually get the latest core and how do I do that because the one available in the ide is only up to 2.3.0

The url you are using in the IDE’s File > Preferences screen for the ESP8266 core is out of date.

The correct url is:

If you update this and then go back into Boards Manager you’ll be able to see the latest ESP8266 core version which is 3.1.1 which was released yesterday.


1 Like

Thank you so much!! It is finally connected to Blynk!!