Go Down

Topic: Invalid library found error (Read 2226 times) previous topic - next topic


I keep receiving an invalid library found error, after compiling sketches. How can I correct that?


"Pete, it's a fool (who) looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.
I speak for myself, not Arduino.


There are three common causes of the invalid library warning:
  • You saved a sketch to the libraries folder. Sketches are only allowed in that folder as examples inside the folder of a valid library. Fix: move the sketch anywhere else other than the libraries folder.
  • Incorrect installation of a valid library. The library folder must be directly under the libraries folder, not in a subfolder. This means the library must have either a .h file or a library.properties file in its root folder. Fix: move the library folder to directly under the libraries folder.
  • Something that's neither library nor sketch in the libraries folder. Fix: move it somewhere else, anywhere other than the libraries folder.

Go Up