fatal error: Arduino.h: No such file or directory

I went to verify a sketch I had edited and received the following:

/var/folders/pg/ws524fv56l35tn30718qkh3r0000gp/T/arduino_build_307252/sketch/AnalogReadSerial.ino.cpp:1:21: fatal error: Arduino.h: No such file or directory
 #include <Arduino.h>
                     ^
compilation terminated.
exit status 1
Error compiling for board Arduino/Genuino Uno.

I am running on Mac OSX 10.12.2. I tried deleting and reinstalling the entire app to no avail. I even tried running the pre-installed examples in order to rule out any of my own errors.

The Arduino.h file is installed:

Any ideas? I’m willing to do whatever it takes to get it working.

Here is a link to the image showing the Arduino.h file installed in the directory. I'm not sure if the integrated photo is working in my original post:

Hi @JimFuoco,
are you using the Desktop IDE or the Web IDE? If you are in the Web IDE you can share your sketch with us with a link
Thanks

@smellai. I am using the Desktop IDE, and was able to figure out the issue was. Once i re-removed the desktop IDE, and also deleted the 2 folders ~/Library/Arduino and ~/Library/Arduino15, then reinstalled, everything was back to normal. I think they had gotten corrupted at some point.

Hi Jim

I think this may cover you in future.

CLEAN UP BEFORE INSTALLING ANOTHER COPY OF THE IDE OR ARDUINO CREATE.pdf (334 KB)