I faced the same issue and followed this advice (replacing those 5 files) after replacing the ‘arduino’ folder