1、create app account:https://controlzet.wordpress.com/2013/12/20/sharepoin-2013-system-accounts-can-not-deploy-an-apps/
2、add role of the database:http://www.c-sharpcorner.com/blogs/resolve-problem-installed-app-for-sharepoint-the-local-sharepoint-server-is-not-available1
3、Add site administrator permission
4、create app pool:https://sharepoint.stackexchange.com/questions/54617/error-occurred-in-deployment-step-install-app-for-sharepoint-2013
5、change IE settings:https://chanakyajayabalan.wordpress.com/2013/12/10/sharepoint-hosted-app-2013-configuring-your-environment-for-app-deployment/
6、check file types and deploy solution:https://support.office.com/en-us/article/Types-of-files-that-cannot-be-added-to-a-list-or-library-30be234d-e551-4c2a-8de8-f8546ffbf5b3?CorrelationId=52940d43-997a-49ec-8e14-60a1c4e8eccd&ui=en-US&rs=en-US&ad=US&ocmsassetID=HA101907868#ID0EAADAAA=2016