mediapipe icon indicating copy to clipboard operation
mediapipe copied to clipboard

can't access builder

Open ChenLiangChong opened this issue 3 years ago • 2 comments

Build aar but the error message shows that I can't access the Builder is there anyone who can help?

    public void startCamera() {
        cameraHelper = new CameraXPreviewHelper();
        cameraHelper.setOnCameraStartedListener(this::onCameraStarted);
        CameraHelper.CameraFacing cameraFacing =
                USE_FRONT_CAMERA ? CameraHelper.CameraFacing.FRONT : CameraHelper.CameraFacing.BACK;
        cameraHelper.startCamera(this, cameraFacing, null, cameraTargetResolution());
    }
testmediapipe\MainActivity.java:210: error: cannot access Builder
        cameraHelper.startCamera(this, cameraFacing, null, cameraTargetResolution());
                    ^
  class file for androidx.camera.core.ImageCapture$Builder not found

ChenLiangChong avatar Jul 27 '22 11:07 ChenLiangChong

Hi @ChenLiangChong , Problem will be solved by upgrading gcc compiler. before, my gcc version was 7.* and It works now with gcc 8.* .

sureshdagooglecom avatar Aug 02 '22 14:08 sureshdagooglecom

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you.

google-ml-butler[bot] avatar Aug 09 '22 14:08 google-ml-butler[bot]

Closing as stale. Please reopen if you'd like to work on this further.

google-ml-butler[bot] avatar Aug 16 '22 14:08 google-ml-butler[bot]

Are you satisfied with the resolution of your issue? Yes No

google-ml-butler[bot] avatar Aug 16 '22 14:08 google-ml-butler[bot]