You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Android Health Connect聚合类型不支持异常求助(SpeedSeries_speed_avg)

关于Health Connect的java.lang.IllegalArgumentException异常问题

java.lang.IllegalArgumentException: Unsupported aggregation type SpeedSeries_speed_avg

该异常与SpeedSeries_speed_avg聚合类型不支持有关,我已查阅相关文档,但未找到明确的解决方案。

补充信息如下:

  • Android Health Connect版本:1.1.0-alpha07
  • 相关代码/配置:代码配置中指定了SpeedRecord的聚合类型参数
  • 复现步骤:读取关联会话数据(AssociatedSessionData)时,指定聚合数据类型为SpeedRecord.SPEED_AVG、SpeedRecord.SPEED_MAX、SpeedRecord.SPEED_MIN
val exerciseSession = healthConnectClient.readRecord(ExerciseSessionRecord::class, uid)

请问是否有人遇到过类似问题,能否提供解决指导?非常感谢!

内容的提问来源于stack exchange,提问作者Hardik Ramoliya

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.29 19:22:01