New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ERROR] Unable to resolve dependency for ':porcupinemanager@debug/compileClasspath': Could not resolve project :porcupine. #60
Comments
how did you open the project? please provide detailed steps so I can help. |
Hello! |
You need to open /demo/android. Please have a look at README there as well: https://github.com/Picovoice/Porcupine/tree/master/demo/android |
The Problem isn't solved. Error message doesn't changed. I think in build.gradle(Module:porcupine-debug), Could you help me to solve this problem? |
I am fairly certain that Android binging and demo app are working. But let's try to find the problem here. I need you to outline every single step to open/run the project so I can try to find the problem. thank you. |
Thank you.
|
OK. Can you please revert all local changes (or get a fresh version of repo). Only open the demo/android project (don't try to build anything manually) and then build that? |
I got a fresh version of repo. |
what is the version of android studio you are using? what version of gradle? whats the OS? I am using androidstudio 3.1.3 and cannot reproduce the problem. |
I am using android studio 3.1.3, gradle 4.4, Windows 64 bits. |
OK. I am building on a Linux box. That is the only difference. Can you build on Linux/Mac? |
OK. I build on Ubuntu by using VMware Workstation, but same error occurred. |
Let me think about how to go about debugging this as I need a way to reproduce it. One last question, when you've built on VM did you clone the repository directly into your VM and copied it from your Windows machine? |
I think I know what the problem is. The project is using symlinks and when you clone it on a Windows machine it probably gets messed up! This is my hunch. An easy test would be to clone from VM directly without Windows involved. Could you give this a try? Also, Android machinery figures what is your CPU and loads the correct binary. |
I guess the message is pretty self-explanatory. Do the files exist? Can you find them? If not you need to figure out why ... |
Hello, i have been facing this same problem. The first time I cloned and installed the repo it worked like a charm. I have since formatted and now i have this same problem. You may be correct about the symlinks. When i look in the demo/android directory, there is no folder labeled porcupine where when i had the project working i think there once was. I cloned the repo, installed a fresh version of android studio and the error occurs. |
Tried everything I can think of with no success. I will install linux tomorrow and see how it goes there. |
Hello @ShannonHall, Are you using Windows? Also maybe you can invalidate the cache of AndroidStudio and restart it. |
Yes i am using widows 10, i have done Invalidate Cache/ Restart with no change. |
I run it using linux and it works! I think there may be a problem running in windows. |
Thanks. I think the issue is that Windows does not handle symlinks properly. Thanks for helping to debug. Sorry for the inconvenience. I will add this to DOC so that people know about this till we find a long-term solution. |
This I can also confirm its working on Ubuntu 18.04. |
Thank you @wjdgy3746 and @ShannonHall I am closing the issue and adding a NOTE to documentation that Android demo currently works on Linux and Mac. |
I am working on my own different project and I can confirm that symbolic links DOES NOT WORK on windows 10. I just landed here reasearching about not working symlinks in Android Studio. I have a project with its dependencies symlinked inside the folder of the main app project, so I could just add its dependencies and gradle.build files with shorter paths (that was my thought at first) but Android Studio is unable of 'enter across' symbolic links, no matter if they are hard or soft links. Substituting link's paths by actual dependencies path's does indeed solve the problem. I am using version 3.2.1 of Android Studio. |
for me deactivate antivirus and sync project resolve the problem |
Expected behavior
I downloaded project .zip file from github, and tried to execute demo/andriod/app in Android Studio.
However, Gradle project sync failed.
Please help me!
Actual behavior
Error messages are below
Unable to resolve dependency for ':porcupinemanager@debug/compileClasspath': Could not resolve project :porcupine.
Unable to resolve dependency for ':porcupinemanager@debugAndroidTest/compileClasspath': Could not resolve project :porcupine.
Unable to resolve dependency for ':porcupinemanager@debugUnitTest/compileClasspath': Could not resolve project :porcupine.
Unable to resolve dependency for ':porcupinemanager@release/compileClasspath': Could not resolve project :porcupine.
Unable to resolve dependency for ':porcupinemanager@releaseUnitTest/compileClasspath': Could not resolve project :porcupine.
Steps to reproduce the behavior
download zip file and execute in Android Studio
Please include enough details so that the issue can reproduced independently by the resolver.
The text was updated successfully, but these errors were encountered: