适用于Android网络的Google Places API错误 [英] Google Places api for android network error
问题描述
我正在使用Google地方信息自动填充片段来搜索地方.它已经工作了几周了,今天突然间,我收到以下错误消息:
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"/>
我使用以下代码调用该片段: Intent intent =新的PlaceAutocomplete.IntentBuilder(PlaceAutocomplete.MODE_OVERLAY).setFilter(null).build(MainActivity.this);startActivityForResult(intent,PLACE_AUTOCOMPLETE_REQUEST_CODE);
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.
推荐答案
在这里一切都在工作,希望大家能说同样的话.看起来这是Google的问题
Everything is working again over here, hope you guys can say the same. Looks like it was a problem at google
这篇关于适用于Android网络的Google Places API错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!