Hello,
I have a problem with my Arduino IDE when I have downloaded the files and included the library. At first, it works perfectly but after a few months I didn't use the IDE suddenly it can't find my library. I've tried to used my brother's laptop and it works. I have tried re-install the software and search for malware and I couldn't find the problem. So, how should i fix it?
Just an addition. I tried both in Arduino IDE 1x and 2x
3rd party libraries should be in the libraries sub directory of the sketchbook directory.
So that would be worth a check.
A number of board packages come with their own libraries for specific functionalities. They are located in the Arduino15 directory.
You unfortunately did not tell us
- Which libraries can't be found?
- Which board you are compiling for?
- Which operating system (maybe not that relevant but it can be useful to know)?
All of the libraries that were downloaded other than built in. Like Wire.h, still accessable and compile but like DHT.h, i can't compile it. Tried both in esp and arduino. Both still doesn't work.
Did you look in the libraries sub directory of the sketchbook directory if those libraries are there?
For IDE 2.x there is (I don't think it's solved) an issue with non-ascii characters in the file path; not sure if this is a Windows only issue or also applies to other operating systems.
Look for one of the libraries, like DHT, in the Library Manager. Does the button say Install or Remove. If it says Install then you need to click the button to install it. Either you are remembering things wrong, or someone or something deleted the libraries. Hard to tell since you have not shown us the contents of your (sketchbook)/libraries directory.
This is an example. I've tried a lot of the guides in the forum and youtube but none solve it. Tried the finding in the Library manager and sub directory like in the Arduino files and Arduino15 but still no results
Please post a screenshot of your File → Preferences in the IDE.
Thanks.
You have non-ascii characters in your path of the sketchbook directory. As mentioned it's a known issue with IDE 2.x.
Option1
Create an Arduino directory outside your user directory. Next change the sketchbook directory in File → Preferences to that new directory.
Option 2
Create another user account (e.g. anonymouslynig) and use that for your Arduino development (or for everything).
Note
This does not explain why you have a problem in IDE 1.x.
It works. Thanks.
Do you still have problems with IDE 1.x?

