First of all, you have to go to your vs code where your code files are available then follow those steps...
Delete the 'firebase.json' file. Delete the '.firebaseerc' Delete the 'build' folder if you build your project before. After 3 steps again follow the firebase hosting steps. Those steps are worked for my project.