【发布时间】:2018-02-19 16:26:29
【问题描述】:
我正在尝试使用 Google Geocode API,但我一直遇到同样的错误: 线程“Rate Limited Dispatcher”中的异常 java.lang.AbstractMethodError: com.google.maps.internal.OkHttpPendingResult$1.onResponse(Lokhttp3/Response;)V
我不明白这是什么意思,也找不到任何解释。
GeoApiContext context = new GeoApiContext.Builder()
.apiKey(...)
.build();
GeocodingResult[] results = GeocodingApi.geocode(context,myaddress).await();
if (results.length > 0){
answerGoogle= results[0].geometry.location;
System.out.println(anwserGoogle);
}
我在第 4 行有错误(GeocodingResult[]...) 你能帮帮我吗?
【问题讨论】:
-
我遇到了同样的问题。你想通了吗?你在什么环境下运行它?
-
IO 发现了我的问题,不知何故我的库不匹配。
标签: java geocoding google-geocoder