Mulitple Libraries for LiquidCrystal.h

I am trying to code a robot for my high school class and an error for multiple Liquid Crystal libraries were found. But I only have one installed.

How can I fix this problem?

Error Code: Multiple libraries were found for "LiquidCrystal.h"
Used: C:\Users\bmartinez19\Documents\Arduino\libraries\LiquidCrystal
Not used: C:\Program Files (x86)\Arduino\libraries\LiquidCrystal
exit status 1
Error compiling for board Arduino/Genuino Uno.

bmartinez19:
an error for multiple Liquid Crystal libraries were found

That’s not an error. It’s just some helpful information. You probably need to scroll up to see the actual error.

bmartinez19:
I only have one installed.

Clearly you have two installed. C:\Program Files (x86)\Arduino\libraries\LiquidCrystal is the version of the library that comes with the Arduino IDE. C:\Users\bmartinez19\Documents\Arduino\libraries\LiquidCrystal is the version of the library you installed, which overrides the version that comes with the Arduino IDE.

When you encounter an error you’ll see a button on the right side of the orange bar “Copy error messages”. Click that button. Paste the error in a message here USING CODE TAGS (</> button on the toolbar).

Arduino: 1.8.3 (Windows 10), Board: "Arduino/Genuino Uno"

C:\Program Files (x86)\Arduino\libraries\RobotIRremote\src\IRremoteTools.cpp:5:16: error: 'TKD2' was not declared in this scope

 int RECV_PIN = TKD2; // the pin the IR receiver is connected to

                ^

Multiple libraries were found for "LiquidCrystal.h"
 Used: C:\Users\bmartinez19\Documents\Arduino\libraries\LiquidCrystal
 Not used: C:\Program Files (x86)\Arduino\libraries\LiquidCrystal
exit status 1
Error compiling for board Arduino/Genuino Uno.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Aha! Now you can see what the real error is. Try this:

  • Sketch > Include Library > Manage Libraries
  • In the "Filter your search" box, type "irremote"
  • Click on "IRremote by shirrifF"
  • Click "Install"
  • Wait for installation to finish.
  • Click "Close".

Then try the sketch again. Hopefully the error will be gone.