profile
viewpoint

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.

google/mediapipe

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/libmediapipe_jni.so creating: lib/armeabi-v7a/ inflating: lib/armeabi-v7a/libmediapipe_jni.so adding: jni/arm64-v8a/libmediapipe_jni.so (deflated 75%) adding: jni/armeabi-v7a/libmediapipe_jni.so (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.

useful!
source:https://uonfu.com/
Github User Rank List