Google Places api for android network error

巧了我就是萌 提交于 2019-12-12 16:21:56

问题


I'm using the google places autocomplete fragment to search for places. It has been working for a few weeks now and all of a sudden today, I'm getting the following error:

E/AsyncOperation: serviceID=65, operation=AddPlace
                                             OperationException[Status{statusCode=NETWORK_ERROR, resolution=null}]
                                                 at amsa.b(:com.google.android.gms:266)
                                                 at amro.a(:com.google.android.gms:60)
                                                 at lin.run(:com.google.android.gms:111)
                                                 at llt.run(:com.google.android.gms:450)
                                                 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
                                                 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
                                                 at lqc.run(:com.google.android.gms:17)
                                                 at java.lang.Thread.run(Thread.java:761)

I've tried setting the filter to null as the posted solution here.

My manifest has the following meta-data :

<meta-data
        android:name="com.google.android.geo.API_KEY"
        android:value="Axxxxxxxxxxxxxxxxxxxxxxxxx8"/>

I'm calling the fragment with the following code:Intent intent = new PlaceAutocomplete.IntentBuilder(PlaceAutocomplete.MODE_OVERLAY) .setFilter(null) .build(MainActivity.this); startActivityForResult(intent, PLACE_AUTOCOMPLETE_REQUEST_CODE);

I would like to point out that this code has been working for a few weeks without any problems, and I haven't made any changes to it.


回答1:


Everything is working again over here, hope you guys can say the same. Looks like it was a problem at google




回答2:


Seeing errors as well. Looks like Google Places API might be having an outage.

GooglePlacesSDK Returning Error 500



来源:https://stackoverflow.com/questions/44118233/google-places-api-for-android-network-error

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