-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[bug] Android dev fail in Windows #6502
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
Comments
|
@lucasfernog A tiny example: fn main() {
let env_path = std::env::var("Path").unwrap();
println!("env Path: {:?}", &env_path);
duct::cmd("npm", ["-v"]).env("Path", env_path).run().unwrap();
}
|
I have deleted |
I use fnm and it works well. Maybe you need to configure something so |
What's the contents of |
There is no
I will try fnm instead. |
Try restarting too, I heard you need to restart in order for the environment variables to propagate. It should work with your setup. |
@lucasfernog I tried with fnm but still failed, here are my steps:
Now npm and the environment variables are correct, I think
Gradle and duct still do not find But I found a workaround: change
They work.
|
But I run into a new problem:
|
My Windows VM is broken but I'm opening a PR to fix the |
I will test it 20 hours later. |
worked fine for me, can you try recreating the android project, clearing the target folder and potentially any old apks on the emulator with the same bundler identifier? I did encounter another bug but that bug will crash the CLI and it is with
|
After fixing the above |
I have no idea why it hangs but the commands are executed and resolved back to the JS cli, yet the process doesn't exit. Exiting the process manually on successful commands fixes it. I opened #6510 for this. |
The process doesn't exit because of a bug napi@2.11.4. It has been |
Ah nice, looks like it got released today. |
this should be fixed now in the latest tauri-cli |
Describe the bug
tauri android dev
throw an error:Gradle output:
It means that the gradle process can not find the
npm
oryarn
command, but why?This did not happen in
@tauri-apps/cli@2.0.0-alpha.2
Reproduction
next
branch.yarn tauri android init
+yarn tauri android dev
atexamples/api
.Expected behavior
Android apk should be compiled successfully.
Platform and versions
Stack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: