tauri-apps / tauri

Build smaller, faster, and more secure desktop and mobile applications with a web frontend.
https://tauri.app
Apache License 2.0
85.36k stars 2.58k forks source link

[bug] run android dev error On Win10 #11760

Open ssw1992 opened 1 day ago

ssw1992 commented 1 day ago

Describe the bug

not work

Reproduction

No response

Expected behavior

No response

Full tauri info output

npm run tauri android init
npm run tauri android dev

Stack trace

Compiling quote v1.0.36 Compiling libc v0.2.155 Compiling cfg-if v1.0.0 Compiling hashbrown v0.14.5 Compiling rand_core v0.5.1 Compiling rand v0.8.5 Compiling windows-targets v0.52.5 Compiling equivalent v1.0.1 error[E0463]: can't find crate for core | = note: the x86_64-linux-android target may not be installed = help: consider downloading the target with rustup target add x86_64-linux-android

For more information about this error, try rustc --explain E0463. error: could not compile cfg-if (lib) due to 1 previous error warning: build failed, waiting for other jobs to finish... error: could not compile libc (lib) due to 1 previous error error: script "dev" exited with code 255 Failed to runcargo build: command ["cargo", "build", "--package", "mobile-rss", "--manifest-path", "E:\\test\\tauri-app\\src-tauri\\Cargo.toml", "--target", "x86_64-linux-android", "--lib"] exited with code 101 ErrorFailed to run cargo build: command ["cargo", "build",

Additional context

No response

FabianLars commented 15 hours ago

please include the output of npm run tauri info

also, the error tells you what to do, did you skip https://v2.tauri.app/start/prerequisites/#android perhaps?

If you did run rustup target add ... and it's still not working: Do you maybe have 2 rust installations, for example a second one installed via chocolatey or something?