Unable to show Google Maps using WiFi behind a proxy

核能气质少年 提交于 2019-12-13 22:06:12

问题


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

  1. you extended MapActivity?
  2. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!