question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error in make android_arm64

See original GitHub issue

i run make android_arm64 in MediaPipe Unity Plugin get error ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ ljl@ljl-B460MAORUSELITE:~/Downloads/MediaPipeUnityPlugin$ make android_arm64 cd C && bazel build -c opt --config=android_arm64 mediapipe_api/java/org/homuler/mediapipe/unity:mediapipe_android mediapipe_api:mediapipe_models mediapipe_api:mediapipe_proto_srcs DEBUG: Rule ‘rules_foreign_cc’ indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = “a0f90646527c4e7222f7f2b29042a8f23d81996d8509e7ccd21c36a247348eb1” DEBUG: Repository rules_foreign_cc instantiated at: /home/ljl/Downloads/MediaPipeUnityPlugin/C/WORKSPACE:79:13: in <toplevel> Repository rule http_archive defined at: /home/ljl/.cache/bazel/_bazel_ljl/3bf2eb8198ff65c00b4c1c6bf4ce01f7/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel> INFO: Build options --cpu and --fat_apk_cpu have changed, discarding analysis cache. DEBUG: Rule ‘rules_cc’ indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = “fc58ff069f150c81abd10231bb1d9fbff0ba9322e03c9396518db4d054d5f2e6” DEBUG: Repository rules_cc instantiated at: /home/ljl/Downloads/MediaPipeUnityPlugin/C/WORKSPACE:73:13: in <toplevel> Repository rule http_archive defined at: /home/ljl/.cache/bazel/_bazel_ljl/3bf2eb8198ff65c00b4c1c6bf4ce01f7/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel> ERROR: While resolving toolchains for target //mediapipe_api/java/org/homuler/mediapipe/unity:mediapipe_android_dummy_app: no matching toolchains found for types @bazel_tools//tools/android:sdk_toolchain_type ERROR: Analysis of target ‘//mediapipe_api/java/org/homuler/mediapipe/unity:mediapipe_android’ failed; build aborted: no matching toolchains found for types @bazel_tools//tools/android:sdk_toolchain_type INFO: Elapsed time: 0.075s INFO: 0 processes. FAILED: Build did NOT complete successfully (0 packages loaded, 40 targets con
figured) currently loading: @rules_pkg// Fetching …python; Cloning 4b84ad270387a7c439ebdccfd530e2339601ef27 of ht
tps://github.com/bazelbuild/rules_python.git Makefile:48: recipe for target ‘android_arm64’ failed make: *** [android_arm64] Error 1


i use setup_android_sdk_and_ndk.sh https://github.com/google/mediapipe/blob/master/setup_android_sdk_and_ndk.sh

i can run mediapipe android command ↓↓↓↓↓↓↓↓↓↓↓ bazel build -c opt --config=android_arm64 mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu:handtrackinggpu

ljl@ljl-B460MAORUSELITE:~/Downloads/mediapipe-0.8.2$ bazel build -c opt --config=android_arm64 mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu:handtrackinggpu DEBUG: Rule ‘rules_foreign_cc’ indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = “a0f90646527c4e7222f7f2b29042a8f23d81996d8509e7ccd21c36a247348eb1” DEBUG: Repository rules_foreign_cc instantiated at: /home/ljl/Downloads/mediapipe-0.8.2/WORKSPACE:39:13: in <toplevel> Repository rule http_archive defined at: /home/ljl/.cache/bazel/_bazel_ljl/c7df26029a2a82fe2e630be26bc9cc65/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel> DEBUG: Rule ‘rules_cc’ indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = “fc58ff069f150c81abd10231bb1d9fbff0ba9322e03c9396518db4d054d5f2e6” DEBUG: Repository rules_cc instantiated at: /home/ljl/Downloads/mediapipe-0.8.2/WORKSPACE:33:13: in <toplevel> Repository rule http_archive defined at: /home/ljl/.cache/bazel/_bazel_ljl/c7df26029a2a82fe2e630be26bc9cc65/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel> DEBUG: Rule ‘android_opencv’ indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = “cdb0e190c3734edd4052a3535d9e4310af912a9f70a421b1621711942a1028d5” DEBUG: Repository android_opencv instantiated at: /home/ljl/Downloads/mediapipe-0.8.2/WORKSPACE:221:13: in <toplevel> Repository rule http_archive defined at: /home/ljl/.cache/bazel/_bazel_ljl/c7df26029a2a82fe2e630be26bc9cc65/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel> INFO: Analyzed target //mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu:handtrackinggpu (0 packages loaded, 0 targets configured). INFO: Found 1 target… Target //mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu:handtrackinggpu up-to-date: bazel-bin/mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu/handtrackinggpu_deploy.jar bazel-bin/mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu/handtrackinggpu_unsigned.apk bazel-bin/mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu/handtrackinggpu.apk INFO: Elapsed time: 0.215s, Critical Path: 0.00s INFO: 1 process: 1 internal. INFO: Build completed successfully, 1 total action


Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:20 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
AhmedEmadEldinHussincommented, Feb 3, 2021

when I write this command ls $ANDROID_HOME it list the files in directory

0reactions
AhmedEmadEldinHussincommented, Feb 4, 2021

it is already built now thank you Uploading Screenshot from 2021-02-04 12-31-10.png… so Iam going to close it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error when building Makefile.sdk.mk on Android arm64
I'm trying to build Makefile.sdk.mk on my Android (arm64). I get the following error when trying to 'make' it (note that I do...
Read more >
Error when building for Android IL2CPP Arm 64
Hi We try to build an Android apk file for IL2CPP Arm 64, but almost at the end (after 1hr), we get the...
Read more >
Error:arm64-v8a|x86|x86_64|mips|mips64' for type 'abiType'.
I've tried clean project, invalidate cache, reinstall android studio (I've checked 2.3.3 and 3.0.1). Nothing helps. android · gradle · android- ...
Read more >
build for android arm64 throw error (#549) - OpenConnect
I edited openconnect/android/Makefile variable ARCH := arm64 and my ndk is android-ndk-r21e this situation throws the following errors. when ...
Read more >
Support 64-bit architectures | Android game development
If your app is built using CMake, you can build for 64-bit ABIs by passing the arm64-v8a into the '-DANDROID_ABI' parameter: :: Command...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found