android / health-samples

Apache License 2.0
244 stars 138 forks source link

Fix crash by adding dependency #265

Closed breanatate closed 1 month ago

breanatate commented 1 month ago

Fix crash: Process: com.example.measuredata, PID: 6829 java.lang.IllegalArgumentException: com.example.measuredata: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.

yschimke commented 1 month ago

Repeat of https://github.com/android/health-samples/issues/209