Closed yayachang closed 4 months ago
Thanks for reporting this!
Speed aggregation is not currently supported in the most recent versions of Android 14, and the team is working to re-add support for this. In the meantime, an alternative is to use other indicators, such as distance and/or cadence to approximate speed.
I upgraded Android targetSdkVersion to 34 and Health Connect library upgraded to implementation "androidx.health.connect:connect-client:1.1.0-alpha07".
When reading exercise data, app encountered the following error:
but aggregateDataTypes remove SPEED related is working. Are there any settings or migrations that I missed?
val aggregateDataTypes = setOf( ExerciseSessionRecord.EXERCISE_DURATION_TOTAL, StepsRecord.COUNT_TOTAL, DistanceRecord.DISTANCE_TOTAL, ActiveCaloriesBurnedRecord.ACTIVE_CALORIES_TOTAL, TotalCaloriesBurnedRecord.ENERGY_TOTAL, ElevationGainedRecord.ELEVATION_GAINED_TOTAL, HeartRateRecord.BPM_AVG, HeartRateRecord.BPM_MAX, HeartRateRecord.BPM_MIN, //SpeedRecord.SPEED_AVG, //SpeedRecord.SPEED_MAX, //SpeedRecord.SPEED_MIN, )