From 065f1f38aa3363f512cfb47f8e03de92855fe263 Mon Sep 17 00:00:00 2001 From: Jiuqiang Tang Date: Fri, 17 Mar 2023 17:00:22 -0700 Subject: [PATCH] Fix the vision tasks aar build rule to solve the "cannot find symbol" error: ``` mediapipe/tasks/java/com/google/mediapipe/tasks/vision/imagesegmenter/ImageSegmenter.java:28: error: cannot find symbol import com.google.mediapipe.tasks.TensorsToSegmentationCalculatorOptionsProto; ``` PiperOrigin-RevId: 517542284 --- .../java/com/google/mediapipe/tasks/mediapipe_tasks_aar.bzl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mediapipe/tasks/java/com/google/mediapipe/tasks/mediapipe_tasks_aar.bzl b/mediapipe/tasks/java/com/google/mediapipe/tasks/mediapipe_tasks_aar.bzl index 2fa0e5e6d..030c7cfc9 100644 --- a/mediapipe/tasks/java/com/google/mediapipe/tasks/mediapipe_tasks_aar.bzl +++ b/mediapipe/tasks/java/com/google/mediapipe/tasks/mediapipe_tasks_aar.bzl @@ -228,7 +228,9 @@ EOF name = name, srcs = srcs, manifest = "AndroidManifest.xml", - java_proto_lite_targets = _CORE_TASKS_JAVA_PROTO_LITE_TARGETS + _VISION_TASKS_JAVA_PROTO_LITE_TARGETS, + java_proto_lite_targets = _CORE_TASKS_JAVA_PROTO_LITE_TARGETS + _VISION_TASKS_JAVA_PROTO_LITE_TARGETS + [ + "//mediapipe/tasks/cc/vision/image_segmenter/calculators:tensors_to_segmentation_calculator_java_proto_lite", + ], native_library = native_library, )