MacGyver написа:Преди няколко дни и аз се сблъсках с този проблем. За да се оправи ви трябва root. Във файла /etc/hosts трябва да се изтрие реда в който има android.clients.google.com.
Тая вечер в един технополис тествах 3 китайски таблета- един привилег MID-7M, един MID-7N и един Diva Premium 7 3G
И трите дадоха тази грешка че не могат да установят връзка с сървъра на Google.
Явно проблема обхваща китайските устройства.
След това за проба опитах с един Acer и с него веднага стана.
Това е решението на проблема:
Код:
- Use the ADB to connect to your device. I have the Android sdk installed on my PC and ADB is part of it, but you can get ADB without getting the entire sdk (http://mobilecon.info/install-adb-in-windows.html). See the official Google page on this tool for tips: http://developer.android.com/tools/help/adb.html
- Turn on your tablet and make sure that USB debugging is set
- Open a cmd.exe window on your pc and goto your ADB folder (ex. cd \android-tools\ADB)
- make sure you see the device by typing: adb devices
You should see something similar to this:
List of devices attached
F10012122400560018ED device
If you don't have a device listed, then go back and figure out why it's not connected.
- get the hosts file by typing: adb pull etc/hosts
You should see something like this:
13 KB/s (67 bytes in 0.005s)
The hosts file will be located in your ADB directory on your PC. It will contain something like this:
127.0.0.1 localhost
74.125.93.113 android.clients.google.com
Put a # at the beginning of the second line or just remove it and save your file. It now look like this:
127.0.0.1 localhost
#74.125.93.113 android.clients.google.com
Go back to your cmd.exe window and type: adb shell
You should have something like this:
shell@android:/ $
at the $ prompt, type: mount
This displays all the mounts, you should see many, but look for one that is for /system. On my tablet, this is the line:
/dev/block/ndda2 /system ext4 ro,relatime,barrier=1,data=ordered 0 0
Notice the little 'ro' after the ext4, this means read-only. We will remount the /system to give it write permission.
You first need to give yourself superuser rights. At the $ prompt, type: su
Notice your $ prompt changed to #
Remount /system by typing this: mount -o rw,remount /dev/block/ndda2
If your /system entry you found when typing mount did not start with /dev/block/ndda2, replace with the correct string in the above command.
You can confirm that this was successful by retyping mount at the prompt, the /system entry should have 'rw' after the ext4, like this:
/dev/block/ndda2 /system ext4 rw,relatime,barrier=1,data=ordered 0 0
Now we need to change access attributes on the hosts file. Type: chmod 777 etc/hosts
Now type exit twice, once to get out of su mode, and once to get out of the shell. You should be back at your dos prompt.
To replace the hosts file on the tablet, type: adb push hosts etc/hosts
This will copy the hosts file you modified on your PC back into the tablet. You should see something like this:
13 KB/s (67 bytes in 0.005s)
We're done! Reboot tablet and you will be able to connect to Google Play.
Note: If you're wondering, after rebooting, the /system mount is back at ro. The hosts file is still writable, if you are really paranoid, you can use the steps above to go and do a chmod to restore the original rights. The command is: chmod 644 etc/hosts
Аз лично препоръчвам реда да не се трие, а IP адреса преди android.clients.google.com да се смени на 173.194.35.137