Open SGauvin opened 2 months ago
Hey, just to be sure, have you run npm run tauri android init
before running the dev command?
Confirm that running npm run tauri android dev
or any of its equivalent before npm run tauri android init
won't generate that error. Also I can't replicate the above error
cargo tauri info
output
[✔] Environment
- OS: Ubuntu 24.4.0 x86_64 (X64)
✔ webkit2gtk-4.1: 2.44.3
✔ rsvg2: 2.58.0
✔ rustc: 1.81.0 (eeb90cda1 2024-09-04)
✔ cargo: 1.81.0 (2dbb1af80 2024-08-20)
✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (environment override by RUSTUP_TOOLCHAIN)
- node: 20.11.1
- npm: 10.8.2
- bun: 1.0.33
[-] Packages
- tauri 🦀: 2.0.0-rc.15
- tauri-build 🦀: 2.0.0-rc.12
- wry 🦀: 0.43.1
- tao 🦀: 0.30.2
- tauri-cli 🦀: 2.0.0-rc.16
- @tauri-apps/api : 2.0.0-rc.5
- @tauri-apps/cli : 2.0.0-rc.16
[-] Plugins
- tauri-plugin-shell 🦀: 2.0.0-rc.3
- @tauri-apps/plugin-shell : 2.0.0-rc.1
[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../build
- devUrl: http://localhost:1420/
- framework: Svelte
- bundler: Vite
Describe the bug
Can't compile Tauri Project for Android. This is a fresh, unmodified project created with pnpm and solidjs that works for the web on Linux. However, after installing Android Studio and setting the proper environement variables, the project fails to compile for Android (see stack trace).
Reproduction
Follow the steps in https://v2.tauri.app/start/prerequisites/ for Linux Create a tauri app using pnpm and solidjs Install Android Studio on Linux, set your environment variables, create a desktop entry for android studio Run
pnpm tauri android dev --open
Click on the green arrow in android studioExpected behavior
No response
Full
tauri info
outputStack trace
Additional context
At first, I wasn't even able to run
pnpm tauri android dev --open
, becauseAndroid Studio
wasn't in my PATH (studio.sh
was). I had to create a Desktop Entry for Android Studio to even be able to makepnpm tauri android dev --open
open Android Studio.