I was configuring a dev onpremises farm in SharePoint 2013 to support apps, I followed the guide in https://msdn.microsoft.com/es-es/library/office/fp179923.aspx
But, everytime I tried to add the app to a site I received thhe following error:
“Sorry, something went wrong with adding the app. Click to retry.”
The first thing I did, it was an iisreset, but that didn’t work, so I started to figure out what was happening at all. Suddenly I remembered that the SPTimer Service would need to be restarted.
Once I did this, it started working like a charm. So, take into account that any change on SharePoint configuration, will be very smart to restar the SpTimer service.
Hope this helps someone out there getting the same error… if you are sure you did everything right in the configuration – you might actually be correct! Just remember to restart services for them to pick up your changes…