java.io.IOException:使用geocoder.getFromLocation时grpc失败

时间:2019-12-21 11:05:39

标签: android google-maps google-geocoder

我来自伊朗,在使用Vpn的真实设备中,ip地址更改并且geocoder.getFromLocation正常工作。 但是当我不使用Vpn时,会发生此错误:grpc失败

WebElement element = new WebDriverWait(driver, 20).until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//span[@class='abc']")));
String text=element.getAttribute("textContent");
String[] lines = text.split("\\r?\\n");
System.out.println(lines[2].trim());

0 个答案:

没有答案
相关问题