[bug] android build : failed to select a version for the requirement `quinn = "^0.11.1"`
Closed this issue · 2 comments
lafleurdeboum commented
Describe the bug
When running yarn tauri android build
the cargo build fails (skipping vite output) :
error: failed to select a version for the requirement `quinn = "^0.11.1"`
candidate versions found which didn't match: 0.10.2, 0.10.1, 0.10.0, ...
location searched: crates.io index
required by package `reqwest v0.12.8`
... which satisfies dependency `reqwest = "^0.12"` (locked to 0.12.8) of package `tauri v2.0.6`
... which satisfies dependency `tauri = "^2"` (locked to 2.0.6) of package `integrate v0.1.0 (/home/lafleur/Sources/tauri/integrate/src-tauri)`
`Failed to run `cargo build`: command ["cargo", "build", "--package", "integrate", "--manifest-path", "/home/lafleur/Sources/tauri/integrate/src-tauri/Cargo.toml", "--target", "aarch64-linux-android", "--features", "tauri/custom-protocol tauri/rustls-tls", "--lib", "--release"] exited with code 101
Error `Failed to run `cargo build`: command ["cargo", "build", "--package", "integrate", "--manifest-path", "/home/lafleur/Sources/tauri/integrate/src-tauri/Cargo.toml", "--target", "aarch64-linux-android", "--features", "tauri/custom-protocol tauri/rustls-tls", "--lib", "--release"] exited with code 101
error Command failed with exit code 1.
Reproduction
- have android-studio installed with SDK and NDK installed
- create a new app with
yarn create tauri-app
- inside of it :
- run
yarn tauri android init
- run
ANDROID_HOME=~/Android/Sdk/ NDK_HOME=~/Android/Sdk/ndk/28.0.12433566/ JAVA_HOME=/opt/android-studio/jbr/ yarn tauri android build --target aarch64 --apk
- run
Expected behavior
build fails for another reason (or succeeds)
Full tauri info
output
[✔] Environment
- OS: Arch Linux Rolling Release x86_64 (X64)
✔ webkit2gtk-4.1: 2.46.2
✔ rsvg2: 2.59.1
✔ rustc: 1.82.0 (f6e511eec 2024-10-15)
✔ cargo: 1.82.0 (8f40fc59f 2024-08-21)
✔ rustup: 1.27.1 (2024-05-07)
✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
- node: 20.18.0
- yarn: 1.22.22
- npm: 10.9.0
[-] Packages
- tauri 🦀: 2.0.6
- tauri-build 🦀: 2.0.2
- wry 🦀: 0.46.3
- tao 🦀: 0.30.3
- @tauri-apps/api : 2.0.3
- @tauri-apps/cli : 2.0.5
[-] Plugins
- tauri-plugin-shell 🦀: 2.0.2
- @tauri-apps/plugin-shell : 2.0.1
[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../dist
- devUrl: http://localhost:1420/
- framework: React
- bundler: Vite
Stack trace
No response
Additional context
Building for my host architecture (x86_64 linux) succeeds.
FabianLars commented
Can you delete the ~/.cargo/registry
folder and the project target folder and try again?
lafleurdeboum commented
Fixes the issue ! Thank you very much
Le 27 octobre 2024 08:12:27 GMT+01:00, Fabian-Lars ***@***.***> a écrit :
…Can you delete the `~/.cargo/registry` folder and the project target folder and try again?
--
Reply to this email directly or view it on GitHub:
#11503 (comment)
You are receiving this because you authored the thread.
Message ID: ***@***.***>