mlkit icon indicating copy to clipboard operation
mlkit copied to clipboard

[Bug report] Pose Detection crash on start

Open vivascu opened this issue 4 months ago • 1 comments

Describe the bug When launching the pose detection library on a Pixel 6 or Pixel 6 Pro phone the library crashes.

To Reproduce Example Steps to reproduce the behavior in sample app:

  1. Open the sample app
  2. Click on 'Run the ML Kit quickstart written in Kotlin'
  3. Click on 'CameraXLivePreviewActivity'
  4. Click on the usecase dropdown that says 'Object detection'
  5. Select 'Pose Detection' from the dropdown
  6. See error

https://github.com/user-attachments/assets/9037cde3-6a9f-4597-954c-f92125063fa7

crash log

device description

Expected behavior Pose detection starts without issues.

SDK Info:

  • com.google.mlkit:pose-detection:18.0.0-beta5

Smartphone:

  • Device Pixel 6, Pixel 6 Pro
  • Device OS: Android API 34, Android API 35, Android API 36

vivascu avatar Oct 20 '25 12:10 vivascu

Yes, we faced the same issue on Google Pixel 6. We found a solution.

We added the following lines to the app-level build.gradle file:

configurations.all { resolutionStrategy { force "com.google.mlkit:pose-detection:18.0.0-beta1" force "com.google.mlkit:pose-detection-accurate:18.0.0-beta1" } }

This overrides the ML Kit dependency version. After adding this block (at the bottom of the file) and running:

flutter clean flutter pub get

the app started working correctly on Pixel 6 and other devices.

Keyur078 avatar Dec 08 '25 11:12 Keyur078