Invalid Library Found

Hello,

I am receiving the following error whenever I try to upload to my Arduino UNO: Invalid library found in C:\Users\Name\Documents\Arduino\libraries\arduino_562039: no headers files (.h) found in C:\Users\Name\Documents\Arduino\libraries\arduino_562039

I have already looked at another post where a user reported a similar error and tried a solution that worked for him (Something that's neither library nor sketch in the libraries folder. Fix: move it somewhere else, anywhere other than the libraries folder.). However, it did not work for me since there are no files in the libraries folder to begin with. I did have the option "show hidden items" on also so I know there wasn't anything invisible in there. The other odd part is that I could upload this code before without any errors a couple months ago and I just came back today and am having this issue. The code also compiles without error. I also attached the code.

Tom

Dual_Motor_Program.ino (8.85 KB)

More members will see your code if you post it in accordance with the forum guidelines.

I assume you mean posting it directly in the original post so its more accessible instead of attaching a file. I cannot since it exceeds the maximum character limit.

It looks a bit like a temporary folder name, though I don't know why it would be expected in the libraries folder. Keep the libraries folder open when you compile and see if anything flashes up and disappears again.

Do other sketches compile?
Was it working before? If so, what changed?
Are you using the most up to date version of the Arduino IDE?
Maybe try an uninstall and reinstall.

@arduarn I am not using the latest Arduino version. No temporary folder appears and disappears when I try to upload/compile. Other sketches do compile but return the same issue. I did not change anything in the sketches nor the Arduino version. Haven't touched anything Arduino related at all and came back to this issue. I tried uploading these to another Arduino UNO board however and it did work. So it may be a board problem? I will try to do a clean re-install also.

Edit: Also I forgot to say I tried uploading the same codes using another computer and that worked for both boards (Didn't throw an error).

If the directory is empty, why not just delete it?

@blh64 I will also try this but I assumed that it was needed for temporary files so didn't want to do that originally

Try compiling and running a few of the example sketches. If they fail as well, then you need a fresh install of the IDE.

tkeaton:
I am receiving the following error

It's not an error. It's just a helpful informational message. You are welcome to just ignore it if you like. The only harm invalid libraries cause is to slow down the library scan process slightly, which is why the Arduino IDE notifies you about it. With only a single invalid library, you probably wouldn't notice the speed difference, but if you pile up a bunch of them it could significantly slow down compilations, uploads, and Library Manager.

tkeaton:
there are no files in the libraries folder to begin with.

That's why it's invalid. All valid libraries must contain a .h file at a minimum.

tkeaton:
I also attached the code.

This has absolutely nothing to do with your code. You will get that message no matter which sketch is open.

arduarn:
It looks a bit like a temporary folder name

This is a fallback folder name used by Library Manager. If you are installing or updating a library via Library Manager and a folder already exists with the library name, Library Manager may not be able to access the folder (maybe a file it contains is being accessed by a different program) or may determine that the folder contains a different library, and thus should not be overwritten. In this case, the Library Manager library is installed to a folder named arduino_nnnnnn, where nnnnnn is a random number.

tkeaton:
@blh64 I will also try this but I assumed that it was needed for temporary files so didn't want to do that originally

No, it's not serving any purpose. Delete it and get back to having fun with Arduino.