Error occurred in deployment step 'Activate Features': Feature with Id XXXXXXX' is not installed in this farm, and cannot be added to this scope.

Another Well known SharePoint issue , when you use Visual Studio to build your visual web part,  . In the Feature Design mode we you gave the scope of feature  as Farm by mistake and when we try to deploy the solution you will get the error message.
 
"Error occurred in deployment step 'Activate Features': Feature with Id XXXXXXX' is not installed in this farm, and cannot be added to this scope".
 
The resolution is pretty straight forward just the change the scope of the feature in Feature design window as "Web".
 
Happy Share Pointing :-)