Ask questionsbuild aar failed

bazel build -c opt --fat_apk_cpu=arm64-v8a,armeabi-v7a mediapipe/examples/android/src/java/com/google/mediapipe/apps/aar_example:mp_face_detection_aar -s ERROR: /Users/user/Ctsmed/mediapipe/mediapipe/examples/android/src/java/com/google/mediapipe/apps/aar_example/BUILD:3:1: no such package '@com_google_common_flogger_system_backend//jar': The repository '@com_google_common_flogger_system_backend' could not be resolved and referenced by '//mediapipe/examples/android/src/java/com/google/mediapipe/apps/aar_example:mp_face_detection_aar_android_lib' ERROR: Analysis of target '//mediapipe/examples/android/src/java/com/google/mediapipe/apps/aar_example:mp_face_detection_aar' failed; build aborted: no such package '@com_google_common_flogger_system_backend//jar': The repository '@com_google_common_flogger_system_backend' could not be resolved INFO: Elapsed time: 0.237s INFO: 0 processes. FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured) Fetching @local_config_cc; Restarting.


Answer questions jiuqiant

@jiuqiant Thanks! Build completed successfully with --host_crosstool_top option. does not contain a toolchain for cpu 'darwin' ERROR: Analysis of target was disappear!

bazel build -c opt --fat_apk_cpu=arm64-v8a,armeabi-v7a //mediapipe/examples/android/src/java/com/google/mediapipe/apps/aar_example:mp_face_detection_aar --host_crosstool_top=@bazel_tools//tools/cpp:toolchain

Archive: /private/var/tmp/_bazel_chenlong/46cfe12d82525b8b2b43cf38d2da2eb7/sandbox/darwin-sandbox/4355/execroot/mediapipe/bazel-out/darwin-opt/bin/mediapipe/examples/android/src/java/com/google/mediapipe/apps/aar_example/mp_face_detection_aar_dummy_app_unsigned.apk creating: lib/ creating: lib/arm64-v8a/ inflating: lib/arm64-v8a/ creating: lib/armeabi-v7a/ inflating: lib/armeabi-v7a/ adding: jni/arm64-v8a/ (deflated 75%) adding: jni/armeabi-v7a/ (deflated 74%) Target //mediapipe/examples/android/src/java/com/google/mediapipe/apps/aar_example:mp_face_detection_aar up-to-date: bazel-bin/mediapipe/examples/android/src/java/com/google/mediapipe/apps/aar_example/mp_face_detection_aar.aar INFO: Elapsed time: 22452.530s, Critical Path: 2659.41s INFO: 4355 processes: 4216 darwin-sandbox, 2 local, 137 worker. INFO: Build completed successfully, 4517 total actions

Thanks for reporting this. The documentation is also updated.


Related questions

Get hand_tracking_cpu source code to extract detected hand metadata hot 2
SSL certification error while downloading dependency libraries via Bazel hot 1
Build of Hello World Failed on Darwin (MacOS) hot 1
Build of Hello World Failed on Darwin (MacOS) hot 1
Bazel build failed in Android Studio hot 1
Fail to pull in MediaPipe's external dependencies due to unstable internet connection hot 1
at<clinit>( hot 1
Hand Tracking Desktop GPU Build Error hot 1
ERROR: An error occurred during the fetch of repository 'bazel_skylib' hot 1
Bazel build failed to fetch Maven dependency hot 1
Running error hot 1
Hello World failed build on Raspberry Pi - mediapipe hot 1
Accessing landmarks, tracking multiple hands, and enabling depth on desktop hot 1
Unable to load the hand detection model hot 1
Error in building TensorFlow Object Detection Demo hot 1
Github User Rank List