When I tried to add a SharePoint mvc app I am getting following error:
Error occurred in deployment step \'Install app for SharePoint\':
Failed to install app f
I have had the same problem. Problem was that the app.config file of the SharePoint App project has Deployment Type: 'ElementFile' and was going to be deployed to the host web. This should not happen and generated the error.
Solution: Change Deployment Type of the app.config to 'NoDeployment' and redeploy.