IR Sensor: 'TKD2' was not declared in this scope

Hey, I was hoping someone might be able to tell me what’s up with this error:

/Applications/Arduino.app/Contents/Java/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
                ^
Using library RobotIRremote at version 1.0.2 in folder: /Applications/Arduino.app/Contents/Java/libraries/RobotIRremote 
exit status 1
Error compiling for board Arduino/Genuino Uno.

The code I’m using is an example I found a while back to familiarize myself with the library.

#include <IRremote.h>
#include <IRremoteInt.h>
#include <IRremoteTools.h>

int RECV_Pin = 6;

IRrecv irrecv(RECV_Pin);

decode_results results;

void setup() 
{
  Serial.begin(9600);
  irrecv.enableIRIn();// Starts the reciever
}

void loop() 
{
  if (irrecv.decode(&results))
  {
    Serial.println(results.value, HEX);
    irrecv.resume(); //Recvieve the next value
  }
}

Try googling it. That's a rather common occurrence. You presently have two different IR libraries installed and the IDE is picking the wrong one. Unless you have the Arduino robot, delete the libraries that have to do with it.

when i delete the robotIRremort from arduino library then solve the problem.

thank u for ur help.