googlesamples / mlkit

A collection of sample apps to demonstrate how to use Google's ML Kit APIs on Android and iOS
Apache License 2.0
3.55k stars 2.93k forks source link

Waiting for the face detection module to be downloaded. Please wait. #308

Closed MyRui closed 3 years ago

MyRui commented 3 years ago

When For bundling the model in my app: dependencies { // Use this dependency to bundle the model with your app implementation 'com.google.mlkit:face-detection:16.1.0' } } I don't need download mode from google play store,need Model statically linked to my app at build time. But now, when install app from android studio ,it still need to download the face mode? My app show the error : "Waiting for the face detection module to be downloaded. Please wait."

The trace: 2021-05-28 11:05:15.554 22381-22381/com.dr.hello.facecheckdemo W/System.err: com.google.mlkit.common.MlKitException: Waiting for the face detection module to be downloaded. Please wait. 2021-05-28 11:05:15.554 22381-22381/com.dr.hello.facecheckdemo W/System.err: at com.google.mlkit.vision.face.internal.zza.zzb(com.google.android.gms:play-services-mlkit-face-detection@@16.1.6:8) 2021-05-28 11:05:15.555 22381-22381/com.dr.hello.facecheckdemo W/System.err: at com.google.mlkit.vision.face.internal.zzh.zzc(com.google.android.gms:play-services-mlkit-face-detection@@16.1.6:3) 2021-05-28 11:05:15.555 22381-22381/com.dr.hello.facecheckdemo W/System.err: at com.google.mlkit.vision.face.internal.zzh.run(com.google.android.gms:play-services-mlkit-face-detection@@16.1.6:1) 2021-05-28 11:05:15.555 22381-22381/com.dr.hello.facecheckdemo W/System.err: at com.google.mlkit.vision.common.internal.MobileVisionBase.zza(Unknown Source:2) 2021-05-28 11:05:15.555 22381-22381/com.dr.hello.facecheckdemo W/System.err: at com.google.mlkit.vision.common.internal.zzc.call(Unknown Source:4) 2021-05-28 11:05:15.555 22381-22381/com.dr.hello.facecheckdemo W/System.err: at com.google.mlkit.common.sdkinternal.ModelResource.zza(com.google.mlkit:common@@17.2.0:8) 2021-05-28 11:05:15.555 22381-22381/com.dr.hello.facecheckdemo W/System.err: at com.google.mlkit.common.sdkinternal.zzm.run(Unknown Source:10) 2021-05-28 11:05:15.555 22381-22381/com.dr.hello.facecheckdemo W/System.err: at com.google.mlkit.common.sdkinternal.zzp.run(com.google.mlkit:common@@17.2.0:2) 2021-05-28 11:05:15.555 22381-22381/com.dr.hello.facecheckdemo W/System.err: at com.google.mlkit.common.sdkinternal.MlKitThreadPool.zze(com.google.mlkit:common@@17.2.0:4) 2021-05-28 11:05:15.555 22381-22381/com.dr.hello.facecheckdemo W/System.err: at com.google.mlkit.common.sdkinternal.MlKitThreadPool.zzc(com.google.mlkit:common@@17.2.0:1) 2021-05-28 11:05:15.555 22381-22381/com.dr.hello.facecheckdemo W/System.err: at com.google.mlkit.common.sdkinternal.zzi.run(Unknown Source:2) 2021-05-28 11:05:15.555 22381-22381/com.dr.hello.facecheckdemo W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 2021-05-28 11:05:15.555 22381-22381/com.dr.hello.facecheckdemo W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 2021-05-28 11:05:15.555 22381-22381/com.dr.hello.facecheckdemo W/System.err: at com.google.mlkit.common.sdkinternal.MlKitThreadPool.zzd(com.google.mlkit:common@@17.2.0:2) 2021-05-28 11:05:15.555 22381-22381/com.dr.hello.facecheckdemo W/System.err: at com.google.mlkit.common.sdkinternal.zzj.run(Unknown Source:2) 2021-05-28 11:05:15.555 22381-22381/com.dr.hello.facecheckdemo W/System.err: at java.lang.Thread.run(Thread.java:923)

zhouyiself commented 3 years ago

Thanks for the report!

There's a bug in the latest 'com.google.mlkit:face-detection:16.1.0' library, please fall back to use the previous 'com.google.mlkit:face-detection:16.0.7' before we can release a new version.

MyRui commented 3 years ago

Thanks, previous version 'com.google.mlkit:face-detection:16.0.7' is ok

zhouyiself commented 3 years ago

We just released com.google.mlkit:face-detection:16.1.1, please help verify.

zhouyiself commented 3 years ago

Please reopen the issue if it's not resolved with the latest version.

MyRui commented 3 years ago

thanks, com.google.mlkit:face-detection:16.1.1 is ok.

rohilla17 commented 2 years ago

Facing download issue again in 17.0.1

rohilla17 commented 2 years ago

when we hard reset the phone, the ml kit 17.0.1 is not downloading in any case

jackqdyulei commented 2 years ago

Hi rohilla17, do you still have issue? If so, please provide following info so we can take a further look.

Please noted current face module is large so it takes time to download.

egbuna commented 2 years ago

Facing same issue @jackqdyulei

device info Brand:samsung Model:Galaxy A8+(2018)

Operating system Version:Android 9

Rooted:No

ml kit 17.0.1

OleksandrGrument commented 7 months ago

confirming, the issue still exist on version 17.1.0

alizarei95 commented 2 months ago

Problem still exists in v17.1.0 but I could fix it by clearing all data of Google Play Services