google-ai-edge / mediapipe

Cross-platform, customizable ML solutions for live and streaming media.
https://ai.google.dev/edge/mediapipe
Apache License 2.0
27.05k stars 5.11k forks source link

Sync Failed mepiapipe example Android Studio 4.1.1 #1407

Closed MeliLuca closed 3 years ago

MeliLuca commented 3 years ago

Hi guys. I'm using Android Studio 4.1.1 and I'm following the option 2 of this tutorial https://google.github.io/mediapipe/getting_started/android.html . The Hello World run, so I think that the mediapipe installation went well.

MacOs : Big Sur v 11.1 bazel : bazel 3.7.1-homebrew xcode-select: 2384 SDK_build_tool : 28.0.3 NDK : 22.0.702661 SDK platform : 29 API level

When I try to import the bazel project I get the following

Syncing project: Sync (incremental)...
Updating VCS...
Running Bazel info...
Command: /usr/local/bin/bazel info --tool_tag=ijwb:AndroidStudio --curses=no --color=yes --progress_in_terminal_title=no --host_crosstool_top=@bazel_tools//tools/cpp:toolchain --

Command: git diff --name-status --no-renames 39309bedba255aee2a4f31b29b65609857698ada

DEBUG: Rule 'rules_foreign_cc' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "3e6b0691fc57db8217d535393dcc2cf7c1d39fc87e9adb6e7d7bab1483915110"
DEBUG: Repository rules_foreign_cc instantiated at:
  /Users/lucamelissari/mediapipe/WORKSPACE:39:13: in <toplevel>
Repository rule http_archive defined at:
  /private/var/tmp/_bazel_lucamelissari/7c50bb697dfbe52e4ee4c91f8a6dc776/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
Computing VCS working set...
  .aswb/.bazelproject (added)
  .aswb/.blaze/modules/.project-data-dir.iml (added)
  .aswb/.blaze/modules/.workspace.iml (added)
  .aswb/.idea/.gitignore (added)
  .aswb/.idea/.name (added)
  .aswb/.idea/misc.xml (added)
  .aswb/.idea/modules.xml (added)
  .aswb/.idea/runConfigurations.xml (added)
  .aswb/.idea/vcs.xml (added)
  WORKSPACE (modified)

Querying targets building source files...
Command: /usr/local/bin/bazel query --tool_tag=ijwb:AndroidStudio --output=label_kind --keep_going same_pkg_direct_rdeps(//:WORKSPACE) --

Sync targets from project view targets:
  //mediapipe/examples/android/...:all
  //mediapipe/java/...:all

Building Bazel targets...
Command: /usr/local/bin/bazel build --tool_tag=ijwb:AndroidStudio --keep_going --build_event_binary_file=/var/folders/ll/6bxh2nqj3t3b_3346g0qrrv80000gn/T/intellij-bep-85a75b79-c3d1-481b-87e6-a7672f1591eb --nobuild_event_binary_file_path_conversion --curses=no --color=yes --progress_in_terminal_title=no --host_crosstool_top=@bazel_tools//tools/cpp:toolchain --noexperimental_run_validations --aspects=@intellij_aspect//:intellij_info_bundled.bzl%intellij_info_aspect "--override_repository=intellij_aspect=/Users/lucamelissari/Library/Application Support/Google/AndroidStudio4.1/plugins/aswb/aspect" --output_groups=intellij-info-android,intellij-info-generic,intellij-info-java,intellij-resolve-android,intellij-resolve-java -- //mediapipe/examples/android/...:all //mediapipe/java/...:all

Loading: 
Loading: 0 packages loaded
Analyzing: 82 targets (30 packages loaded, 0 targets configured)
INFO: SHA256 (https://github.com/bazelbuild/rules_cc/archive/master.zip) = fc58ff069f150c81abd10231bb1d9fbff0ba9322e03c9396518db4d054d5f2e6
DEBUG: Rule 'rules_cc' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "fc58ff069f150c81abd10231bb1d9fbff0ba9322e03c9396518db4d054d5f2e6"
DEBUG: Repository rules_cc instantiated at:
  /Users/lucamelissari/mediapipe/WORKSPACE:33:13: in <toplevel>
Repository rule http_archive defined at:
  /private/var/tmp/_bazel_lucamelissari/7c50bb697dfbe52e4ee4c91f8a6dc776/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
Analyzing: 82 targets (47 packages loaded, 88 targets configured)
Analyzing: 82 targets (50 packages loaded, 101 targets configured)
Analyzing: 82 targets (87 packages loaded, 244 targets configured)
Analyzing: 82 targets (88 packages loaded, 244 targets configured)
Analyzing: 82 targets (91 packages loaded, 244 targets configured)
Analyzing: 82 targets (91 packages loaded, 244 targets configured)
Analyzing: 82 targets (93 packages loaded, 388 targets configured)
Analyzing: 82 targets (130 packages loaded, 1451 targets configured)
Analyzing: 82 targets (165 packages loaded, 2703 targets configured)
Analyzing: 82 targets (217 packages loaded, 4110 targets configured)
Analyzing: 82 targets (233 packages loaded, 14231 targets configured)
Analyzing: 82 targets (235 packages loaded, 19444 targets configured)
Analyzing: 82 targets (235 packages loaded, 19444 targets configured)
Analyzing: 82 targets (235 packages loaded, 19444 targets configured)
Analyzing: 82 targets (239 packages loaded, 19767 targets configured)
Analyzing: 82 targets (239 packages loaded, 19767 targets configured)
Analyzing: 82 targets (239 packages loaded, 19767 targets configured)
Analyzing: 82 targets (239 packages loaded, 19767 targets configured)
Analyzing: 82 targets (239 packages loaded, 19767 targets configured)
Analyzing: 82 targets (239 packages loaded, 19767 targets configured)
Analyzing: 82 targets (239 packages loaded, 19767 targets configured)
Analyzing: 82 targets (239 packages loaded, 19767 targets configured)
Analyzing: 82 targets (239 packages loaded, 19767 targets configured)
Analyzing: 82 targets (239 packages loaded, 19767 targets configured)
Analyzing: 82 targets (239 packages loaded, 19767 targets configured)
Analyzing: 82 targets (239 packages loaded, 19767 targets configured)
Analyzing: 82 targets (239 packages loaded, 19767 targets configured)
Analyzing: 82 targets (239 packages loaded, 19767 targets configured)
Analyzing: 82 targets (239 packages loaded, 19767 targets configured)
INFO: SHA256 (https://github.com/opencv/opencv/releases/download/3.4.3/opencv-3.4.3-android-sdk.zip) = cdb0e190c3734edd4052a3535d9e4310af912a9f70a421b1621711942a1028d5
DEBUG: Rule 'android_opencv' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "cdb0e190c3734edd4052a3535d9e4310af912a9f70a421b1621711942a1028d5"
DEBUG: Repository android_opencv instantiated at:
  /Users/lucamelissari/mediapipe/WORKSPACE:221:13: in <toplevel>
Repository rule http_archive defined at:
  /private/var/tmp/_bazel_lucamelissari/7c50bb697dfbe52e4ee4c91f8a6dc776/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
INFO: Analyzed 82 targets (240 packages loaded, 20168 targets configured).
INFO: Found 82 targets...
[0 / 5] [Prepa] BazelWorkspaceStatusAction stable-status.txt
[187 / 1,081] [Sched] Compiling com_google_protobuf/src/google/protobuf/compiler/cpp/cpp_file.cc [for host]; 32s ... (128 actions, 9 running)
[383 / 1,300] [Sched] Compiling com_github_glog_glog/src/logging.cc [for host]; 38s ... (128 actions, 8 running)
INFO: From Compiling com_github_glog_glog/src/utilities.cc [for host]:
external/com_github_glog_glog/src/utilities.cc:251:17: warning: 'syscall' is deprecated: first deprecated in macOS 10.12 - syscall(2) is unsupported; please switch to a supported interface. For SYS_kdebug_trace use kdebug_signpost(). [-Wdeprecated-declarations]
    pid_t tid = syscall(__NR_gettid);
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/usr/include/unistd.h:742:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
1 warning generated.
INFO: From Compiling com_github_glog_glog/src/raw_logging.cc [for host]:
external/com_github_glog_glog/src/raw_logging.cc:139:3: warning: 'syscall' is deprecated: first deprecated in macOS 10.12 - syscall(2) is unsupported; please switch to a supported interface. For SYS_kdebug_trace use kdebug_signpost(). [-Wdeprecated-declarations]
  safe_write(STDERR_FILENO, buffer, strlen(buffer));
  ^
external/com_github_glog_glog/src/raw_logging.cc:63:34: note: expanded from macro 'safe_write'
# define safe_write(fd, s, len)  syscall(SYS_write, fd, s, len)
                                 ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/usr/include/unistd.h:742:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
1 warning generated.
INFO: From Linking external/com_google_absl/absl/types/libbad_optional_access.a [for host]:
warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: archive library: bazel-out/host/bin/external/com_google_absl/absl/types/libbad_optional_access.a the table of contents is empty (no object file members in the library define global symbols)
INFO: From ProtoCompile mediapipe/calculators/core/flow_limiter_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/framework/tool/calculator_graph_template.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/framework/calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/modules/objectron/calculators/frame_annotation_to_rect_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/modules/holistic_landmark/calculators/roi_tracking_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/modules/objectron/calculators/lift_2d_frame_annotation_to_3d_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/modules/objectron/calculators/filter_detection_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
[999 / 1,936] [Sched] Building third_party/libcamerax_core.jar (); 8s ... (128 actions, 9 running)
INFO: From ProtoCompile mediapipe/modules/objectron/calculators/tflite_tensors_to_objects_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/image/image_cropping_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/graphs/object_detection_3d/calculators/annotations_to_model_matrices_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/graphs/iris_tracking/calculators/iris_to_depth_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/graphs/iris_tracking/calculators/iris_to_render_data_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/tflite/tflite_tensors_to_landmarks_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
[1,245 / 1,936] [Sched] Building third_party/libcamerax_camera2.jar (); 59s ... (128 actions, 9 running)
INFO: From ProtoCompile mediapipe/calculators/core/concatenate_vector_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/image/set_alpha_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/tflite/tflite_tensors_to_segmentation_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/image/recolor_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/tflite/tflite_tensors_to_detections_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/util/detection_label_id_to_text_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/video/tracked_detection_manager_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/core/packet_resampler_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/video/box_detector_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/util/timed_box_list_to_render_data_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/util/timed_box_list_id_to_label_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/tflite/tflite_inference_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/tflite/tflite_converter_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/image/feature_detector_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From Generating JavaLite proto_library //mediapipe/framework:mediapipe_options_proto:
[libprotobuf WARNING external/com_google_protobuf/src/google/protobuf/compiler/java/java_file.cc:230] mediapipe/framework/mediapipe_options.proto: The file's outer class name, "MediapipeOptions", matches the name of one of the types declared inside it when case is ignored. This can cause compilation issues on Windows / MacOS. Please either rename the type or use the java_outer_classname option to specify a different outer class name for the .proto file to be safe.
INFO: From Generating JavaLite proto_library //mediapipe/framework:mediapipe_options_proto:
[libprotobuf WARNING external/com_google_protobuf/src/google/protobuf/compiler/java/java_file.cc:230] mediapipe/framework/mediapipe_options.proto: The file's outer class name, "MediapipeOptions", matches the name of one of the types declared inside it when case is ignored. This can cause compilation issues on Windows / MacOS. Please either rename the type or use the java_outer_classname option to specify a different outer class name for the .proto file to be safe.
INFO: From ProtoCompile mediapipe/calculators/tflite/tflite_custom_op_resolver_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/util/association_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/core/clip_vector_size_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/tensor/tensors_to_classification_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/util/labels_to_render_data_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/util/collection_has_min_size_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/util/annotation_overlay_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/tflite/ssd_anchors_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/util/rect_to_render_data_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/util/rect_to_render_scale_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/util/rect_transformation_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/core/split_vector_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/framework/tool/switch_container.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/util/landmark_projection_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/tensor/inference_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/core/gate_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/tensor/image_to_tensor_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/tensor/tensors_to_landmarks_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/tensor/tensors_to_floats_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/core/constant_side_packet_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/util/thresholding_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/tensor/tensors_to_detections_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/util/detections_to_rects_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/util/landmarks_to_detection_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/util/landmarks_to_render_data_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/util/local_file_contents_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/util/non_max_suppression_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/util/detections_to_render_data_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/util/landmarks_smoothing_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/video/box_tracker_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/internal/callback_packet_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/video/motion_analysis_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/image/image_transformation_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/calculators/video/flow_packager_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/graphs/object_detection_3d/calculators/gl_animation_overlay_calculator.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/graphs/object_detection_3d/calculators/model_matrix.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/gpu/gl_context_options.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
INFO: From ProtoCompile mediapipe/framework/calculator_profile.pb.h [for host]:
bazel-out/host/bin/external/com_google_protobuf/src: warning: directory does not exist.
[1,538 / 1,936] [Sched] Building mediapipe/framework/libpacket_generator_proto-lite.jar (1 source jar); 50s ... (128 actions, 9 running)
INFO: From Compiling mediapipe/framework/calculator.pb.cc [for host]:
bazel-out/host/bin/mediapipe/framework/calculator.pb.cc:1711:13: warning: 'enable_input_output_latency' is deprecated [-Wdeprecated-declarations]
  if (this->enable_input_output_latency() != 0) {
            ^
bazel-out/host/bin/mediapipe/framework/calculator.pb.h:1016:3: note: 'enable_input_output_latency' has been explicitly marked deprecated here
  PROTOBUF_DEPRECATED bool enable_input_output_latency() const;
  ^
external/com_google_protobuf/src/google/protobuf/port_def.inc:151:44: note: expanded from macro 'PROTOBUF_DEPRECATED'
#define PROTOBUF_DEPRECATED __attribute__((deprecated))
                                           ^
bazel-out/host/bin/mediapipe/framework/calculator.pb.cc:1778:13: warning: 'trace_log_duration_events' is deprecated [-Wdeprecated-declarations]
  if (this->trace_log_duration_events() != 0) {
            ^
bazel-out/host/bin/mediapipe/framework/calculator.pb.h:1097:3: note: 'trace_log_duration_events' has been explicitly marked deprecated here
  PROTOBUF_DEPRECATED bool trace_log_duration_events() const;
  ^
external/com_google_protobuf/src/google/protobuf/port_def.inc:151:44: note: expanded from macro 'PROTOBUF_DEPRECATED'
#define PROTOBUF_DEPRECATED __attribute__((deprecated))
                                           ^
bazel-out/host/bin/mediapipe/framework/calculator.pb.cc:1860:13: warning: 'enable_input_output_latency' is deprecated [-Wdeprecated-declarations]
  if (this->enable_input_output_latency() != 0) {
            ^
bazel-out/host/bin/mediapipe/framework/calculator.pb.h:1016:3: note: 'enable_input_output_latency' has been explicitly marked deprecated here
  PROTOBUF_DEPRECATED bool enable_input_output_latency() const;
  ^
external/com_google_protobuf/src/google/protobuf/port_def.inc:151:44: note: expanded from macro 'PROTOBUF_DEPRECATED'
#define PROTOBUF_DEPRECATED __attribute__((deprecated))
                                           ^
bazel-out/host/bin/mediapipe/framework/calculator.pb.cc:1915:13: warning: 'trace_log_duration_events' is deprecated [-Wdeprecated-declarations]
  if (this->trace_log_duration_events() != 0) {
            ^
bazel-out/host/bin/mediapipe/framework/calculator.pb.h:1097:3: note: 'trace_log_duration_events' has been explicitly marked deprecated here
  PROTOBUF_DEPRECATED bool trace_log_duration_events() const;
  ^
external/com_google_protobuf/src/google/protobuf/port_def.inc:151:44: note: expanded from macro 'PROTOBUF_DEPRECATED'
#define PROTOBUF_DEPRECATED __attribute__((deprecated))
                                           ^
bazel-out/host/bin/mediapipe/framework/calculator.pb.cc:1976:12: warning: 'enable_input_output_latency' is deprecated [-Wdeprecated-declarations]
  if (from.enable_input_output_latency() != 0) {
           ^
bazel-out/host/bin/mediapipe/framework/calculator.pb.h:1016:3: note: 'enable_input_output_latency' has been explicitly marked deprecated here
  PROTOBUF_DEPRECATED bool enable_input_output_latency() const;
  ^
external/com_google_protobuf/src/google/protobuf/port_def.inc:151:44: note: expanded from macro 'PROTOBUF_DEPRECATED'
#define PROTOBUF_DEPRECATED __attribute__((deprecated))
                                           ^
bazel-out/host/bin/mediapipe/framework/calculator.pb.cc:2003:12: warning: 'trace_log_duration_events' is deprecated [-Wdeprecated-declarations]
  if (from.trace_log_duration_events() != 0) {
           ^
bazel-out/host/bin/mediapipe/framework/calculator.pb.h:1097:3: note: 'trace_log_duration_events' has been explicitly marked deprecated here
  PROTOBUF_DEPRECATED bool trace_log_duration_events() const;
  ^
external/com_google_protobuf/src/google/protobuf/port_def.inc:151:44: note: expanded from macro 'PROTOBUF_DEPRECATED'
#define PROTOBUF_DEPRECATED __attribute__((deprecated))
                                           ^
bazel-out/host/bin/mediapipe/framework/calculator.pb.cc:2572:13: warning: 'has_profiler_config' is deprecated [-Wdeprecated-declarations]
  if (this->has_profiler_config()) {
            ^
bazel-out/host/bin/mediapipe/framework/calculator.pb.h:1533:3: note: 'has_profiler_config' has been explicitly marked deprecated here
  PROTOBUF_DEPRECATED bool has_profiler_config() const;
  ^
external/com_google_protobuf/src/google/protobuf/port_def.inc:151:44: note: expanded from macro 'PROTOBUF_DEPRECATED'
#define PROTOBUF_DEPRECATED __attribute__((deprecated))
                                           ^
bazel-out/host/bin/mediapipe/framework/calculator.pb.cc:2708:13: warning: 'has_profiler_config' is deprecated [-Wdeprecated-declarations]
  if (this->has_profiler_config()) {
            ^
bazel-out/host/bin/mediapipe/framework/calculator.pb.h:1533:3: note: 'has_profiler_config' has been explicitly marked deprecated here
  PROTOBUF_DEPRECATED bool has_profiler_config() const;
  ^
external/com_google_protobuf/src/google/protobuf/port_def.inc:151:44: note: expanded from macro 'PROTOBUF_DEPRECATED'
#define PROTOBUF_DEPRECATED __attribute__((deprecated))
                                           ^
bazel-out/host/bin/mediapipe/framework/calculator.pb.cc:2794:12: warning: 'has_profiler_config' is deprecated [-Wdeprecated-declarations]
  if (from.has_profiler_config()) {
           ^
bazel-out/host/bin/mediapipe/framework/calculator.pb.h:1533:3: note: 'has_profiler_config' has been explicitly marked deprecated here
  PROTOBUF_DEPRECATED bool has_profiler_config() const;
  ^
external/com_google_protobuf/src/google/protobuf/port_def.inc:151:44: note: expanded from macro 'PROTOBUF_DEPRECATED'
#define PROTOBUF_DEPRECATED __attribute__((deprecated))
                                           ^
9 warnings generated.
INFO: From Executing genrule //mediapipe/graphs/hair_segmentation:mobile_gpu_binary_graph:
[libprotobuf WARNING external/com_google_protobuf/src/google/protobuf/text_format.cc:324] Warning parsing text-format mediapipe.CalculatorGraphConfig: 116:5: text format contains deprecated field "use_gpu"
INFO: From Processing Android resources for //mediapipe/examples/android/src/java/com/google/mediapipe/apps/basic:helloworld:
[1,834 / 1,936] [Sched] Processing Android resources for //mediapipe/examples/android/src/java/com/google/mediapipe/apps/posetrackinggpu:posetrackinggpu; 8s ... (24 actions, 9 running)
INFO: From Processing Android resources for //mediapipe/examples/android/src/java/com/google/mediapipe/apps/facemeshgpu:facemeshgpu:
INFO: From Processing Android resources for //mediapipe/examples/android/src/java/com/google/mediapipe/apps/instantmotiontracking:instantmotiontracking:
INFO: From Processing Android resources for //mediapipe/examples/android/src/java/com/google/mediapipe/apps/upperbodyposetrackinggpu:upperbodyposetrackinggpu:
INFO: From Processing Android resources for //mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu:handtrackinggpu:
INFO: From Processing Android resources for //mediapipe/examples/android/src/java/com/google/mediapipe/apps/posetrackinggpu:posetrackinggpu:
INFO: From Processing Android resources for //mediapipe/examples/android/src/java/com/google/mediapipe/apps/iristrackinggpu:iristrackinggpu:
INFO: From Processing Android resources for //mediapipe/examples/android/src/java/com/google/mediapipe/apps/faceeffect:faceeffect:
INFO: Elapsed time: 549,925s, Critical Path: 244,10s
INFO: 1936 processes: 306 internal, 1538 darwin-sandbox, 92 worker.
INFO: Build completed successfully, 1936 total actions
INFO: Build completed successfully, 1936 total actions
INFO: Build Event Protocol files produced successfully.
INFO: Build completed successfully, 1936 total actions
build invocation result: success
Parsing build outputs...
Total rules: 235, new/changed: 235, removed: 0
Reading IDE info result...
Reading IDE info result...
Updating target map
Sync finished

Timing summary:
BlazeInvocation: 550.2s, Prefetching: 0ms, Other: 1ms
Sync failed

Someone can help me to figure out the error? Thanks for your time.

yangcheng commented 3 years ago

I have the same issue, building in cli works for hello world and full app build using bazel build -c opt --config=android_arm64 mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu:handtrackinggpu , but android studio sync failed. I also tried NDK 18.1.5063045 but did not help

yangcheng commented 3 years ago

downgrade to Android 3.5 works

MeliLuca commented 3 years ago

Thank you so much !!! Now everything works 👍

duy-maimanh commented 3 years ago

Hi @MeliLuca . You already downgraded to Android Studio 3.5 ?

MeliLuca commented 3 years ago

Hi @MeliLuca . You already downgraded to Android Studio 3.5 ?

Yes, I did.

duy-maimanh commented 3 years ago

Hi @MeliLuca . You already downgraded to Android Studio 3.5 ?

Yes, I did.

I have problem about NDK, I use NDK 22 like you, but it do not have platform folder, always got error when i sync. And i can't use older ndk because some reasons. So how you fix this problem ?

MeliLuca commented 3 years ago

Hi @MeliLuca . You already downgraded to Android Studio 3.5 ?

Yes, I did.

I have problem about NDK, I use NDK 22 like you, but it do not have platform folder, always got error when i sync. And i can't use older ndk because some reasons. So how you fix this problem ?

Now with Android Studio 3.5 I have install NDK 21.3 by Android Studio IDE. Have you already tried to reinstall NDK by Android Studio?

duy-maimanh commented 3 years ago

Hi @MeliLuca . You already downgraded to Android Studio 3.5 ?

Yes, I did.

I have problem about NDK, I use NDK 22 like you, but it do not have platform folder, always got error when i sync. And i can't use older ndk because some reasons. So how you fix this problem ?

Now with Android Studio 3.5 I have install NDK 21.3 by Android Studio IDE. Have you already tried to reinstall NDK by Android Studio?

Thanks @MeliLuca Me I cant use NDK 22 because it have not platform folder. So i downgrade NDK 21 and it worked.