Call requires API level 26 (current min is 23): java.time.Instant#now
问题 I'm implementing Google's Directions API. My app supports minSdkVersion 23 and java.time.Instant is not supported here. Is there a solution for this, or should i just check for user's version and allow this functionality if it's version is supported? DirectionsResult directionsResult = DirectionsApi.newRequest(geoApiContext) .mode(TravelMode.DRIVING) .origin(new com.google.maps.model.LatLng(mapFragment.getUserCoords().latitude, mapFragment.getUserCoords().longitude)) .destination