Android cant access play store after installing app from outside the play store I have a rooted android phone where i install an app from outside the play store. and now I cant access play store anymore. I search for solution and found this. But I can't even edit the host file. I use ES file explorer to edit.
This are in the host file.

127.0.0.1 localhost
127.124.218.80
android.clients.google.com
mtalk.google.com


My questions is


How to edit the host file?
What can I delete from the host file?(what are the extra lines apart from default in the host file?)
That pretty much looks like the side-loaded app altered your hosts file – and if so, it's malware and I'd get rid of it ASAP – it's completely borked, not even syntactically correct (and looks like a try to redirect playstore access to "nirvana" – as 127.* addresses are reserved for "local loopback"). All but the first line has to be removed.

As your device is rooted, the easiest way to achive that is via adb shell or a terminal app:


su
mount -o remount,rw /system
echo 127.0.0.1 localhost > /system/etc/hosts
mount -o remount,ro /system


You didn't write why/where ES failed editing the file – I assume you've missed mounting /system read-write before trying that (ES can do that as well).