Sorry for the trouble with the hosts file.
The hosts file may be locked or may not be in the correct place. Please following the instructions here: Help! I'm running into an EPERM error with the hosts file on Windows
If the steps above don’t help, please provide your log file by following the steps here How do I retrieve Local’s log file? so we can get a better idea on why Local is unable to update the hosts file.