SharePoint App Deployment fails
Visual Studio does not tell you much if an app deployment fails.
Fortunately SharePoint will log more information about the problem that occurred during the app deployment in the ULS-Log.
So if you run into the “There were deployment errors.” exception, take a look at the ULS-Log. In this particular case SharePoint didn’t like my JavaScript:
App Packaging: CreatePackage: Unexpected exception: There were errors when validating the App package: There were errors when validating the App Package. Other warnings / errors associated with this exception: Custom action urls must start with "http:", "https:", "~appWebUrl" or "~remoteAppUrl". The url "javascript:DoSomething();" is not in the right format.
Always to remember to look at the logfiles, if you have exceptions. They often contain more information 🙂