This completely refreshes all core libraries, including Wire.h .
Since the library is a core file, the most reliable way to fix a missing is to perform a clean installation of the latest Arduino IDE Manual Retrieval (Advanced): download wire.h library for arduino
Once you have downloaded the Wire.h library, follow these steps to install it: This completely refreshes all core libraries, including Wire