mediapipe icon indicating copy to clipboard operation
mediapipe copied to clipboard

Not able to download its sources in Android studio

Open surapuramakhil opened this issue 3 years ago • 3 comments

Please make sure that this is a build/installation issue and also refer to the troubleshooting documentation before raising any issues.

System information (Please provide as much relevant information as possible)

  • OS Platform and Distribution (e.g. Linux Ubuntu 16.04, Android 11, iOS 14.4):
  • Compiler version (e.g. gcc/g++ 8 /Apple clang version 12.0.0):
  • Programming Language and version ( e.g. C++ 14, Python 3.6, Java ):
  • Installed using virtualenv? pip? Conda? (if python):
  • MediaPipe version:
  • Bazel version:
  • XCode and Tulsi versions (if iOS):
  • Android SDK and NDK versions (if android):
  • Android AAR ( if android):
  • OpenCV version (if running on desktop):

Describe the problem: when I click on download sources in android studio bellow error message apprears

Attempt to download sources from Google

FAILURE: Build failed with an exception.

* Where:
Initialization script 'C:\Users\surap\AppData\Local\Temp\ijmiscinit4.gradle' line: 25

* What went wrong:
Execution failed for task ':app:DownloadSources'.
> Could not resolve all files for configuration ':app:downloadSources_2d3139e8-7c4b-44c8-a21e-f04ca146e13f'.
   > Could not find com.google.mediapipe:facedetection:0.8.10@aar.
     Required by:
         project :app

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Provide the exact sequence of commands / steps that you executed before running into the problem:

Complete Logs: Include Complete Log information or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached:

surapuramakhil avatar Aug 07 '22 15:08 surapuramakhil

Hi @surapuramakhil, Could you elaborate your query with complete details. Thank you!

kuaashish avatar Aug 08 '22 06:08 kuaashish

@kuaashish

Repro Steps

  1. Try adding library to your android project
  2. Now you can import classes etc
  3. when you open library classes like "com.google.mediapipe.solutions.facedetection.FaceDetection" in Android studio. Now on top there would be an option to download sources (try doing that)

surapuramakhil avatar Aug 09 '22 19:08 surapuramakhil

Hi @surapuramakhil, Could you please let us know if you successfully built MediaPipe as mentioned here and able to run the Hello_world example. If yes, Could you provide the System information to look into the issue further. Thank you!

kuaashish avatar Aug 10 '22 06:08 kuaashish

Yes. I was able to run Hello world example

Updated system information in issue card

surapuramakhil avatar Aug 10 '22 12:08 surapuramakhil

Hi @surapuramakhil, I was able to successfully reproduce the issue on the mentioned Operating System and device in Android Studio with no error. Could you please follow the steps mentioned in the official documentation. Thank you!

kuaashish avatar Aug 11 '22 06:08 kuaashish

I have done that. landed into issue after following mentioned in offical documentation

surapuramakhil avatar Aug 11 '22 11:08 surapuramakhil

Hello @surapuramakhil, We are upgrading the MediaPipe Legacy Solutions to new MediaPipe solutions However, the libraries, documentation, and source code for all the MediapPipe Legacy Solutions will continue to be available in our GitHub repository and through library distribution services, such as Maven and NPM.

You can continue to use those legacy solutions in your applications if you choose. Though, we would request you to check new MediaPipe solutions which can help you more easily build and customize ML solutions for your applications. These new solutions will provide a superset of capabilities available in the legacy solutions. Thank you

kuaashish avatar Apr 26 '23 11:04 kuaashish

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.

github-actions[bot] avatar May 04 '23 01:05 github-actions[bot]

This issue was closed due to lack of activity after being marked stale for past 7 days.

github-actions[bot] avatar May 11 '23 01:05 github-actions[bot]

Are you satisfied with the resolution of your issue? Yes No

google-ml-butler[bot] avatar May 11 '23 01:05 google-ml-butler[bot]