ErrorDetail: The operation took too long.
SourceName: Common App Deployment
Error occurred in deployment step 'Install app for SharePoint': Failed to install app for SharePoint. Please see the output window for details.
To resolve the above error you need to configure the app catalog URLs from the central administration.
The above errors are occurring because you didn't follow the configuration guide to configure the apps. Please follow without missing any step, then you should not be getting any error.
- See more at: http://technet.microsoft.com/en-us/library/fp161236.aspx