mlkit
mlkit copied to clipboard
[Bug report] Failed to initialize detector
Describe the bug When I use MlKit Object detection to detect,sometimes will show this issue
"Failed to initialize detector" of addOnFailureListener method
anyone can help to solve this or know the reason
Could you provide more info? e.g. which SDK (object detection with base or custom model?), SDK version, OS version, full stacktrace
mlkit version:'com.google.mlkit:object-detection:17.0.0' OS Version:android 10,Redmi Note9 Pro
I get the error from this method:addOnFailureListener response it just show:Failed to initialize detector
detect(inputImage)?.addOnSuccessListener(activity) { detectedObjects -> }?.addOnFailureListener(activity) { e -> // get this error from here }
It only crash on Google play package sometimes
Looking forward to your reply!