Skip to content
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

[bug] run android dev error On Win10 #11760

Open
ssw1992 opened this issue Nov 21, 2024 · 1 comment
Open

[bug] run android dev error On Win10 #11760

ssw1992 opened this issue Nov 21, 2024 · 1 comment
Labels
platform: Windows status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@ssw1992
Copy link

ssw1992 commented Nov 21, 2024

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 run cargo 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 Error Failed to run cargo build: command ["cargo", "build",

Additional context

No response

@ssw1992 ssw1992 added status: needs triage This issue needs to triage, applied to new issues type: bug labels Nov 21, 2024
@FabianLars
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: Windows status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

2 participants