I get this error while I am creating a read request object DataReadRequest
class. I tried to look for the documentation but it is unclear. Here is my code:
DataReadRequest readRequest = new DataReadRequest.Builder()
.read(DataType.TYPE_LOCATION_SAMPLE)
.setTimeRange(startTime, endTime, TimeUnit.MILLISECONDS)
.bucketByTime(1, TimeUnit.HOURS)
.build();
The error is in bucketByTime
method and I don't know how to proceed.