It says that the library already exists while it doesn't

Hello! I wanted to include the following library in my Arduino IDE code: #include <AltSoftSerial.h>, but I got an error saying that "AltSoftSerial.h: No such file or directory". So, I wanted to include the zipfile of the library, but then the error said that "the library already exists". This question has already been asked a few times on the forum, but I did not find an answer that worked for me, because people responded by saying that the library was in the sketchbook and that it had to be deleted. I looked into my sketchbook and found nothing:

I also looked into the the inherent libraries of the Arduino IDE and didn't find the AltSoftSerial.h library:

I also tried to download the library via "Tools>manage libraries" but I got an error.

Your help would be much appreciated!

Did you happen to look into the Arduino libraries folder where all the libraries are stored?

I think that's the folder on the second screenshot

Post your code in code tags and images of your project and a schematic.

Post the entire error message.

it is 4 places where a lib can be:

  • C:\Program Files (x86)\Arduino\libraries,
  • C:\Program Files (x86)\Arduino\hardware\ .....\libraries,
  • userFolder\AppData\Local\Arduino15,
  • yourSketchFolder\libraries
1 Like

It worked! Thank you! I found the files in the third option: AppData>Local>Arduino15>staging>libraries and deleted them. When retrying to include the library as a zipfile, a windows security notification popped up saying that the action was blocked. Arduino IDE was showing an error message again. So, I clicked on the windows-security notification and clicked to allow the action to happen. I retried to include the zipfile and it worked :slight_smile:

after Zip download check his Properties and click "unblock".

Installation and Troubleshooting is for Problems with the Arduino itself NOT your project. It says so in the description of the section. Therefore I have moved your post here. Please be more careful where you post in future.

You may want to read this before you proceed:-
how to get the best out of this forum

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.