开发者

Geocoder error java.io.IOException: Unable to parse response from server

开发者 https://www.devze.com 2023-03-22 00:45 出处:网络
Code: 开发者_如何学CGeocoder geocoder = new Geocoder(map.this,Locale.getDefault()); List<Address> list = geocoder.getFromLocation(geoLat, geoLng, 1);

Code:

开发者_如何学C
Geocoder geocoder = new Geocoder(map.this,Locale.getDefault());
List<Address> list = geocoder.getFromLocation(geoLat, geoLng, 1);

Exception:

java.io.IOException: Unable to parse response from server

What am I doing wrong?


This kind of error shows up when the GPS is not active. Since the emulator doesnt have a GPS hardware, similar exception can be thrown. Cant say for sure unless you post more detail about the problem.

0

精彩评论

暂无评论...
验证码 换一张
取 消