Closed cancan101 closed 9 months ago
Hi,
Happend to me too
bazel build -c opt --config=android_arm64 mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu:handtrackinggpu WARNING: /Users/tzahiwitman/mediapipe/mediapipe/framework/BUILD:56:24: in cc_library rule //mediapipe/framework:calculator_cc_proto: target '//mediapipe/framework:calculator_cc_proto' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use. WARNING: /Users/tzahiwitman/mediapipe/mediapipe/framework/tool/BUILD:197:24: in cc_library rule //mediapipe/framework/tool:field_data_cc_proto: target '//mediapipe/framework/tool:field_data_cc_proto' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use. WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/XNNPACK/archive/b9d4073a6913891ce9cbd8965c8d506075d2a45a.zip failed: class java.io.FileNotFoundException GET returned 404 Not Found INFO: Analyzed target //mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu:handtrackinggpu (0 packages loaded, 0 targets configured). INFO: Found 1 target... ERROR: /Users/tzahiwitman/mediapipe/mediapipe/java/com/google/mediapipe/framework/image/BUILD:19:16: Merging compiled Android resources for //mediapipe/java/com/google/mediapipe/framework/image:image failed: (Exit 1): ResourceProcessorBusyBox failed: error executing command (from target //mediapipe/java/com/google/mediapipe/framework/image:image) bazel-out/darwin_arm64-opt-exec-50AE0418/bin/external/bazel_tools/src/tools/android/java/com/google/devtools/build/android/ResourceProcessorBusyBox --tool MERGE_COMPILED -- --classJarOutput ... (remaining 17 arguments skipped)
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging Jun 13, 2023 6:08:08 PM com.google.devtools.build.android.AndroidCompiledResourceMergingAction main SEVERE: Error during merging resources com.google.devtools.build.android.AndroidResourceMerger$MergingException: Error during merging at com.google.devtools.build.android.AndroidResourceMerger$MergingException.wrapException(AndroidResourceMerger.java:74) at com.google.devtools.build.android.AndroidResourceMerger.mergeCompiledData(AndroidResourceMerger.java:227) at com.google.devtools.build.android.AndroidCompiledResourceMergingAction.main(AndroidCompiledResourceMergingAction.java:231) at com.google.devtools.build.android.ResourceProcessorBusyBox$Tool$3.call(ResourceProcessorBusyBox.java:85) at com.google.devtools.build.android.ResourceProcessorBusyBox.processRequest(ResourceProcessorBusyBox.java:251) at com.google.devtools.build.android.ResourceProcessorBusyBox.main(ResourceProcessorBusyBox.java:181) Caused by: java.io.IOException: com.google.devtools.build.android.AndroidFrameworkAttrIdProvider$AttrLookupException: Android attribute not found: fontVariationSettings at com.google.devtools.build.android.AndroidResourceClassWriter.flush(AndroidResourceClassWriter.java:122) at com.google.devtools.build.android.UnwrittenMergedAndroidData.writeResourceClass(UnwrittenMergedAndroidData.java:91) at com.google.devtools.build.android.AndroidResourceMerger.mergeCompiledData(AndroidResourceMerger.java:219) ... 4 more Caused by: com.google.devtools.build.android.AndroidFrameworkAttrIdProvider$AttrLookupException: Android attribute not found: fontVariationSettings at com.google.devtools.build.android.AndroidFrameworkAttrIdJar.getAttrId(AndroidFrameworkAttrIdJar.java:48) at com.google.devtools.build.android.PlaceholderIdFieldInitializerBuilder.getStyleableInitializers(PlaceholderIdFieldInitializerBuilder.java:329) at com.google.devtools.build.android.PlaceholderIdFieldInitializerBuilder.build(PlaceholderIdFieldInitializerBuilder.java:238) at com.google.devtools.build.android.AndroidResourceClassWriter.flush(AndroidResourceClassWriter.java:114) ... 6 more
Jun 13, 2023 6:08:08 PM com.google.devtools.build.android.ResourceProcessorBusyBox processRequest SEVERE: Error during merging Target //mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu:handtrackinggpu failed to build Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 1.177s, Critical Path: 1.03s INFO: 85 processes: 85 internal. FAILED: Build did NOT complete successfully
@cancan101,
Sorry for the delayed response. This issue is already known to us, And We are working towards the fix the issue. We will let you know once any update becomes available. Thank you
10nx
From: kuaashish @.> Reply-To: google/mediapipe @.> Date: Friday, 7 July 2023 at 12:37 To: google/mediapipe @.> Cc: Tzahi Witman @.>, Comment @.***> Subject: Re: [google/mediapipe] SEVERE: Error during merging resources (Issue #4530)
@cancan101,
Sorry for the delayed response. This issue is already known to us, And We are working towards the fix the issue. We will let you know once any update becomes available. Thank you
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
Has this issue been resolved?? I am getting the same error message I am trying to build and AAR file but my build fails with the same merging resources error.
NO
From: Chinedum Roland Eke @.> Reply-To: google/mediapipe @.> Date: Wednesday, 19 July 2023 at 20:28 To: google/mediapipe @.> Cc: Tzahi Witman @.>, Comment @.***> Subject: Re: [google/mediapipe] SEVERE: Error during merging resources (Issue #4530)
Has this issue been resolved?? I am getting the same error message I am trying to build and AAR file but my build fails with the same merging resources error.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
Hi @cancan101,
Could you please confirm if you still require assistance with this matter? If so, we would like to inform you that AAR solutions for app development are no longer under maintenance, and we anticipate that the reported issue will not be resolved.
Instead, we recommend utilizing our new Image Segmentation Task API. This API is equipped to handle hair segmentation and represents an enhanced version of our legacy Hair Segmentation Solution. Further details can be found here.
Additionally, you may refer to the corresponding Overview documentation and implementation instructions for Android on this page. Should you encounter any issues during implementation, please feel free to report them to us.
Thank you!!
This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you.
This issue was closed due to lack of activity after being marked stale for past 7 days.
OS Platform and Distribution
MacOS 12.6
Compiler version
No response
Programming Language and version
Java
Installed using virtualenv? pip? Conda?(if python)
No response
MediaPipe version
master (4c4a1d93b28f6f40ffcb11aa11cfbfc26ef0dc68)
Bazel version
6.1.1
XCode and Tulsi versions (if iOS)
No response
Android SDK and NDK versions (if android)
ndk 21.4.7075529
Android AAR (if android)
None
OpenCV version (if running on desktop)
No response
Describe the problem
Trying to build for Android using:
Complete Logs