1

I am using Android Google MlKit for pose estimation. But I am getting the following error message:

W/System.err: java.lang.IllegalStateException: MlKitContext has not been initialized

W/System.err: at com.google.android.gms.common.internal.Preconditions.checkState(com.google.android.gms:play-services-basement@@17.4.0:29)

W/System.err: at com.google.mlkit.common.sdkinternal.MlKitContext.getInstance(com.google.mlkit:common@@17.1.1:2)

If anyone has experienced this issue, please feel free to comment on this thread.

Gaurav Mall
  • 2,372
  • 1
  • 17
  • 33
Tony
  • 21
  • 5

1 Answers1

0

You can call this method to initialize the MlKitContext manually. Note that Under normal circumstances the content provider will automatically initialize ML Kit at application startup. You might have disabled the content provider declared in the manifest.

Chenxi Song
  • 557
  • 3
  • 6