Hello, the answer to my question has been posted in many other formats and dialogues, but i still don't have my problem solved.
I am running this code below and an error saying that i have several libraries found for "SD.h" with the used and non-used libraries. I tried adding a library as the whole code zip file, nothing worked, i tried keeping only the libraries i want to use and deleting others, nothing worked. What exactly is the problem and what are some suggestions to fix it? Thank you so much for the help!
This is the code I'm using:
Copy and paste the error message, most likely something else is causing the bugout thingy and the OP is missing it or not. Anyways post the error message so we can see what the error actually is; the whole message.
Several libraries were found for "SD.h".
Used: C: \ Users \ Viola \ Documents \ ArduinoData \ packages \ esp8266 \ 2.4.2 \ libraries \ SD
Not used: C: \ Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdggnx93n4wtt \ libraries \ SD
exit status 1
Error when compiling for the board NodeMCU 1.0 (ESP-12E module).
Are you certain that you have pasted the entire error message? You are sure you cannot go to the scroll bars and scroll up to see more of the error message?
In file included from C:\Users\Viola\Documents\Arduino\libraries\EMailSender/EMailSender.h:217:0,
from C:\Users\Viola\Downloads\2-email-capmoisturesensor\2-email-capmoisturesensor.ino:3:
C:\Users\Viola\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.4.2\libraries\SD\src/SD.h:26:7: error: redefinition of 'class fs::File'
class File : public Stream {
^
In file included from C:\Users\Viola\Documents\Arduino\libraries\EMailSender/EMailSender.h:205:0,
from C:\Users\Viola\Downloads\2-email-capmoisturesensor\2-email-capmoisturesensor.ino:3:
C:\Users\Viola\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.4.2\cores\esp8266/FS.h:48:7: error: previous definition of 'class fs::File'
class File : public Stream
^
Several libraries were found for "SD.h".
Used: C: \ Users \ Viola \ Documents \ ArduinoData \ packages \ esp8266 \ 2.4.2 \ libraries \ SD
Not used: C: \ Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdggnx93n4wtt \ libraries \ SD
exit status 1
Error when compiling for the board NodeMCU 1.0 (ESP-12E module).
Strange. It looks like the "FS.h" file in the ESP8266 core is conflicting with the built-in SD library in the ESP8266 core.
The latest ESP8266 support (V3.0.2) does not define File" in the SD library. That would eliminate the conflict. I suggest you go to Tools -> Board: -> Boards Manager... and update the ESP8266 support to the latest.