java io ioexception unable to parse response from server geocoder

前端 未结 5 895
-上瘾入骨i
-上瘾入骨i 2020-12-16 01:33

I am using this code to get geographical addresses:

private String getAddress(Location location)
{
    try{
        List
addresses = new Geo
5条回答
  •  独厮守ぢ
    2020-12-16 02:16

    Finally I got the solution of my problem.

    If you try to hit server very frequently(several times in a minute) for getting address from lat,long then you can get this exception.The solutions of this problem can be:

    1-Please try to avoid several hits for address in a minute.
    2-Run this code on different device.

    If you want to run this code on same device then clear your app data(or uninstall your app) and wait for some time.

提交回复
热议问题