Recently I downloaded a SharePoint Hosted app from codepex. I was getting error while deploying the app as it was pointing to SharePoint Site which obviously couldn’t be found.
To specify our own SharePoint site Url we need to edit the [Project].csproj.user file. And specify the correct SharePoint Url over there
Followed by closing and reopening the csproj file.
Hope it helps.