mediapipe
mediapipe copied to clipboard
can't access builder
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
Hi @ChenLiangChong , Problem will be solved by upgrading gcc compiler. before, my gcc version was 7.* and It works now with gcc 8.* .
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.
Closing as stale. Please reopen if you'd like to work on this further.