Solutionunvalidated
I upgraded android studio to lady bug then I upgraded android gradle plugin to the latest version 8.8.1 — adding health connect dependency in android studio. Tension: dk version, and downgrading the dependency. Outcome: I was then able to compile and run my code with the dependency.
f6e9aee3-82a4-41b2-8cc5-558e27995c24
I upgraded android studio to lady bug then I upgraded android gradle plugin to the latest version 8.8.1 — adding health connect dependency in android studio. Tension: dk version, and downgrading the dependency. Outcome: I was then able to compile and run my code with the dependency.