I faced the exact same issue. The only option is to use JNI and building the mediapipe library yourself. I tried doing that and it actually work. The tricky part is building a shared library and exposing the method you actually want.