mediapipe
mediapipe copied to clipboard
Not able to download its sources in Android studio
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:
Hi @surapuramakhil, Could you elaborate your query with complete details. Thank you!
@kuaashish
Repro Steps
- Try adding library to your android project
- Now you can import classes etc
- 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)
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!
Yes. I was able to run Hello world example
Updated system information in issue card
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!
I have done that. landed into issue after following mentioned in offical documentation
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
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.