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 · 4 comments
Open

[bug] run android dev error On Win10 #11760

ssw1992 opened this issue Nov 21, 2024 · 4 comments
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?

@ssw1992
Copy link
Author

ssw1992 commented Nov 25, 2024

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?

this is the output of npm run tauri info
[✔] Environment
- OS: Windows 10.0.19045 x86_64 (X64)
✔ WebView2: 131.0.2903.63
✔ MSVC:
- Visual Studio Community 2022
- Visual Studio 生成工具 2022
✔ rustc: 1.79.0 (129f3b996 2024-06-10)
✔ cargo: 1.79.0 (ffa9cf99a 2024-06-03)
✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
- node: 22.1.0
- pnpm: 9.10.0
- yarn: 1.22.22
- npm: 10.7.0
- bun: 1.1.30

[-] Packages
- tauri 🦀: 2.0.0-beta.22
- tauri-build 🦀: 2.0.0-beta.17
- wry 🦀: 0.40.1
- tao 🦀: 0.28.1
- @tauri-apps/api : 2.1.1
- @tauri-apps/cli : 2.1.0

[-] Plugins
- tauri-plugin-sql 🦀: 2.0.0-beta.7
- @tauri-apps/plugin-sql : not installed!
- tauri-plugin-fs 🦀: 2.0.0-beta.9
- @tauri-apps/plugin-fs : not installed!
- tauri-plugin-http 🦀: 2.0.0-beta.10
- @tauri-apps/plugin-http : not installed!
- tauri-plugin-shell 🦀: 2.0.0-beta.7
- @tauri-apps/plugin-shell : 2.0.1

[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../dist
- devUrl: http://localhost:1420/
- framework: Vue.js
- bundler: Vite

and this is the output of rustup target list --installed
aarch64-linux-android
armv7-linux-androideabi
i686-linux-android
x86_64-linux-android
x86_64-pc-windows-msvc

I do not know why there is no core when I run npm run tauri android dev

@FabianLars
Copy link
Member

hmm, can you maybe re-install rust then? and double check that after installing rustup that there's no second install somewhere

@ssw1992
Copy link
Author

ssw1992 commented Nov 26, 2024

hmm, can you maybe re-install rust then? and double check that after installing rustup that there's no second install somewhere

I try it with your method,uninstall rust,re-install ,and it is not work with same error tip when i run npm run tauri android dev,maybe I need try it in another device.

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