-
Notifications
You must be signed in to change notification settings - Fork 162
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
Build command fails with "The system cannot find the path specified" #45
Comments
Thanks for filing this. The issue seems to be happening in this section of code. My guess is that it's not resolving the correct path, and we probably need to change it to use I'll try reproducing this and confirming if that's indeed the case on a Windows environment later today. |
This should have been fixed on #47 - It was breaking when the command-line had spaces in it, and everything after the first space was being treated as parameters. Please, re-open if the issue is still happening. |
Does my command line need to change, or is it still Just running that command still gives me the error. I suspect it's related to the paths for JDK and Android Tools - where are those paths stored now? I'd like to verify they're set right. |
I haven't created a tag for the new version yet (and |
Re-opening, since you are still running into the issue. I am not able to repro on my Windows environment. So, trying to understand how to reproduce. The config file location is defined as the following: const homedir = require('os').homedir();
const CONFIG_FILE_NAME = path.join(homedir, '/.llama-pack/llama-pack-config.json'); On my Windows environment this is @JudahGabriel, would it be possible for you to clone the project, run npm install and execute from your machine? I'd like to eliminate any issues from using git clone https://github.com/GoogleChromeLabs/llama-pack.git
cd llama-pack
npm i
npm run build Then, from the path you want to build a project: <path-to-llama-pack>\bin\llama-pack.js build Andre |
Perfect, thanks. I'll have a look here and see. FYI, my llama-pack.config looks like this: {
"jdkPath": "C:\\Program Files\\AdoptOpenJDK\\jdk-8.0.232.09-hotspot",
"androidSdkPath": "C:\\AndroidTools\\tools"
} I'll try running npm run build instead of npx and see what happens. |
OK, did that, got the same error. Since I'm using npm run, I can probably just debug this on my end now, as I can edit the generated JS files and track down what's going on. I'll post a follow-up here shortly. |
OK, so I think it's my fault: the androidSdkPath was set to C:\AndroidTools\Tools. It shouldn't have that last \Tools directory in there; I think that's the issue. I had tools in there from the previous version before the npx change, where it was looking for something in the tools directory. Thanks for helping solve this one. |
Thanks for checking this out. Seems like we need a better error message. Thank you! |
Using the latest llama-pack instructions, I'm able to successfully execute the
init
command.After completing the
init
command, I execute thebuild
command and receive the following error:After the error, the tool exits.
When it says "system cannot find the path specified", it's not clear to me which path is being referred to, though I suspect it's the Android SDK path. When I first ran the
init
command, it prompted me for paths to JDK and Android SDK; my llama-pack-config.js looks like this:Any idea why I may be getting this path error? I'm on Windows 10 Enterprise using Powershell.
The text was updated successfully, but these errors were encountered: