Before rushing to do a re-write, search the computer for the missing files. Strictly speaking they are header files rather than libraries, but no need to split hairs!
The problem may simply be that they are in the wrong place and the IDE’s compiler isn’t looking for them in those directories. (Directory aka folder.)
In C/C++ statements like #include <timer.h> are common. The <> brackets mean “look for this file in the compilers list of system directories”. This is where installed external libraries and processor headers should be. There are thousands of them.
Alternatively, .h files written locally by a programmer are stored in a list of user defined directories. They are identified by the quote marked form: #include “timer.h” For simplicity In the Arduino IDE, local headers like “timer.h” should always be in the same directory as the .ino file. The editor should open each in a tab.
How to Search
In Linux or mac, I prefer to search from the command line with: find ~ -name ‘event.h’ -print 2> /dev/null
Or “find ~ -name ‘*.h’ -print 2> /dev/null” note the * wildcard will list all header files.
In Windows cmd.exe offers the less powerful dir command, so it may be easier to use file explorer. Start explorer and navigate to your home directory. Then type ctrl-s or ctrl-f to open the search box. Type the filename into the box and with luck Explorer will find it. Fingers crossed, the missing header files are only misplaced and can be copied to the right directory, or their content pasted into a new file.
Cause. I guess the missing header files are the #include “something.h” type? If so, not often necessary on Arduino, making it easy to forget they exist. If the project is copied later, say going from version 1 to version 2, or moving to a different machine, only the .ino is taken and the equally important .h files get left behind. You can guess how I know!
Dave