I am learning Arduino. I have the following problem. It seems that when I try to run any of the examples in my Arduino Uno and Mega,the machine returns with the same error"....."Invalid library found in C:\Users\Dr.C\Documents\Arduino\li......", but it compiles correctly!
What am I doing wrong? I re-intalled IDE, but still I always get the same error regardless of what example I run? Please .....help
I am seeing the same thing after installing 1.8. Lots of complaints about libraries I am not using in my code, yet it compiles & runs fine when I run 1.6.9.
Starting with version 1.6.6, the Arduino IDE displays a warning if you put anything other than a library in the libraries folders. All library folders must be directly under the libraries folder, not in a subfolder. Sketches are not allowed unless they are in the examples folder of a library. So the solution is simple and easy, fix any library that has an invalid library structure and move anything that's not a library out of the libraries folders. I'm not aware of any changes that have happened in this regard between Arduino IDE 1.6.9 and 1.8.x.
I can help with this process but I'd need the full warning message and most likely to know what is in the folders causing the warnings.
Thank you for your help, however, I reloaded an earlier IDE version and everything seems to be working! Of course, I want to be current with the IDE, so, if you do not mind I will connect with you later
and send you the exact script of the errors.
I decided to reload IDE 1.8.1 and ask you if you kindly help me resolve this library issue.
I run one of the examples (blink) and I get the following errors:
Sketch uses 1462 bytes (0%) of program storage space. Maximum is 253952 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 8183 bytes for local variables. Maximum is 8192 bytes.
Invalid library found in C:\Users\Dr.C\Documents\Arduino\libraries\arduino_403153: C:\Users\Dr.C\Documents\Arduino\libraries\arduino_403153
Invalid library found in C:\Users\Dr.C\Documents\Arduino\libraries\arduino_403153: C:\Users\Dr.C\Documents\Arduino\libraries\arduino_403153
If you need anything else, please let me know, and thank you for your willingness to assist me.
I am seeing the same thing, only I get about 8 library complaints for libraries my code doesn't reference, but are in my /libraries folder.
It still compiles & runs, so I've been ignoring them for now. I may move them elsewhere until I actually use them, then see if later versions have been posted.
Invalid library found in C:\Users\Dr.C\Documents\Arduino\libraries\arduino_403153: C:\Users\Dr.C\Documents\Arduino\libraries\arduino_403153
Invalid library found in C:\Users\Dr.C\Documents\Arduino\libraries\arduino_403153: C:\Users\Dr.C\Documents\Arduino\libraries\arduino_403153
When there is a library with a different name value in library.properties but the same folder name as the library you're installing via Library Manager it puts the new library in an arduino_nnnnnn folder so that the previously installed library won't be erased. The library installed to that folder shouldn't be invalid though. Could you post a directory listing of the contents of C:\Users\Dr.C\Documents\Arduino\libraries\arduino_403153? If you don't know how to get text then a screenshot is OK.
CrossRoads:
It still compiles & runs
Yes, I think it's only a warning and having invalid libraries won't actually cause any problems. It's just annoying to see the warning, especially when you have a lot of invalid libraries. When you open/close Library Manager it shows each warning something like four times so it actually looks like there are more invalid libraries. The biggest problem I've seen with it is beginners will have a completely unrelated problem but get distracted thinking the invalid library is the cause. It seems strange that Arduino disables compiler warnings by default but decided it's a good idea to show this sort of warning. I know that at the same time the warning was added they changed the system of scanning the library folders, previous to Arduino IDE 1.6.6 after manually installing a library you had to restart the IDE before it would be recognized. So maybe having extra things in the libraries folder will unnecessarily slow that process.
It seems that now that I moved these files elsewhere, I do not get the "library" errors. But now,
when I run the SD sketch, the program does not go through the SD initialization process, and I get
some advice as to what it could be wrong. But even though I, meticulously tried to pin point the error in
the placement of the pins, or the CS pin, etc. I have not been able to pass this stage. I wish I knew if
it is my error or the IDE's. I know, you have been very generous with your time, but I was wondering
if you have any suggestions.
jcolonias:
What happens when I move these files from Arduino/libraries?
Assuming it's just a sketch that's for some reason in the empty folder structure of a library then nothing happens. You can store sketches anywhere you like, except for in the libraries folder. Often people will store sketches in the sketchbook folder (My Documents/Arduino in your case) because then they will be accessible via the File > Sketchbook menu but it's not required to put them in the sketchbook.
jcolonias:
now,
when I run the SD sketch, the program does not go through the SD initialization process, and I get
some advice as to what it could be wrong
I don't see how moving the sketch to another location could cause that sort of issue but I'm also working with very limited information here. Try moving the folder back to where it was and try again. If the problem still occurs then you know it has nothing to do with moving the folder