MICROCHIP MPLAB ICD2

This page contains information about different errors that I have encountered in my development and also the solution that I have found for the specific issues.
ICDWarn0020: Invalid target device id (expected=0x21, read=0x0) Screenshot
This error occurs whenever the ICD2 device has not been plugged in to the computer or the wrong pic device has been chosen in the project settings.
MPLAB Error - could not find file 'c018i.o'.
Add the path of the library and header files to solve problem.