问题
I have created a simple app which shows a Google Map. I am testing it on a HTC Desire S and I am using only WiFi network behind a proxy. But it is not showing anything, only map tile are shown in the screen. Even the default map application is not working. It shows the error message that
"Network Failure : wrong remote string version.GMM server must be hosting:/ string_remote_no-remote-strings."
My Map API key is correct and I have added the following permissions in the manifest file:
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
How do I solve this problem?
回答1:
Are you sure
- you extended
MapActivity? - your API Key is correct?
Apparently if you are using a proxy, and have set that in your APN, then your AVD cannot load any application that is using the map, neither the pre-installed one, nor any created by you.
Check http://code.google.com/p/android/issues/detail?id=3764#makechanges
来源:https://stackoverflow.com/questions/6911531/unable-to-show-google-maps-using-wifi-behind-a-proxy