Closed whittenator closed 1 month ago
Can you share your tauri.conf.json
file?
Yeah, my tauri.conf.json
is attached.
tauri.conf.json
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "test-app",
"version": "0.1.0",
"identifier": "com.test.app",
"build": {
"beforeDevCommand": "npm run dev",
"devUrl": "http://localhost:1420",
"beforeBuildCommand": "npm run build",
"frontendDist": "../dist"
},
"app": {
"windows": [
{
"title": "test-app",
"width": 800,
"height": 600
}
],
"security": {
"csp": null
}
},
"bundle": {
"active": true,
"targets": "all",
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.icns",
"icons/icon.ico"
]
}
}
me too,create new project don't change any code,compile for android,same error
` Environment
[-] Packages
[-] Plugins
[-] App
I've encountered the same problem, tauri info:
[✔] Environment
- OS: Windows 10.0.22631 x86_64 (X64)
✔ WebView2: 130.0.2849.52
✔ MSVC: Visual Studio Professional 2022
✔ 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-pc-windows-msvc (default)
- node: 20.11.1
- yarn: 1.22.19
- npm: 10.2.4
[-] Packages
- tauri 🦀: 2.0.6
- tauri-build 🦀: 2.0.2
- wry 🦀: 0.46.3
- tao 🦀: 0.30.4
- @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: Vue.js
- bundler: Vite
Same for me.
tauri info
:
[✔] Environment
- OS: Arch Linux Rolling Release x86_64 (X64)
✔ webkit2gtk-4.1: 2.46.2
✔ rsvg2: 2.59.1
✔ rustc: 1.81.0 (eeb90cda1 2024-09-04)
✔ cargo: 1.81.0 (2dbb1af80 2024-08-20)
✔ rustup: 1.27.1 (2024-05-07)
✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
- node: 23.1.0
- pnpm: 9.12.3
- npm: 10.9.0
[-] Packages
- tauri 🦀: 2.0.6
- tauri-build 🦀: 2.0.2
- wry 🦀: 0.46.3
- tao 🦀: 0.30.4
- tauri-cli 🦀: 2.0.4
- @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
- tauri-plugin-nfc 🦀: 2.0.1
- @tauri-apps/plugin-nfc : 2.0.0
[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../build
- devUrl: http://localhost:1420/
- framework: Svelte
- bundler: Vite
"tao" update 0.30.3 to 0.30.4 causes the issue
Facing the same issue:
> livsports-next@0.1.0 tauri
> tauri info
[✔] Environment
- OS: Windows 10.0.19045 x86_64 (X64)
✔ WebView2: 129.0.2792.89
✔ MSVC: Visual Studio Build Tools 2019
✔ rustc: 1.78.0 (9b00956e5 2024-04-29)
✔ cargo: 1.78.0 (54d8815d0 2024-03-26)
✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
- node: 18.14.0
- pnpm: 9.12.3
- yarn: 1.22.22
- npm: 9.4.1
- deno: deno 2.0.0
[-] Packages
- tauri 🦀: 2.0.6
- tauri-build 🦀: 2.0.2
- wry 🦀: 0.46.3
- tao 🦀: 0.30.4
- @tauri-apps/api : 2.0.3
- @tauri-apps/cli : 2.0.5
[-] Plugins
- tauri-plugin-http 🦀: 2.0.3
- @tauri-apps/plugin-http : 2.0.1
- tauri-plugin-fs 🦀: 2.0.3
- @tauri-apps/plugin-fs : not installed!
- tauri-plugin-shell 🦀: 2.0.2
- @tauri-apps/plugin-shell : 2.0.1
[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../build
- devUrl: http://localhost:1420/
- framework: Svelte
- bundler: Vite
"tao" update 0.30.3 to 0.30.4 causes the issue
@alanyang @ecmel @MirazMac @amrbashir
This is the quick fix, went into my Cargo.toml and specified tao = "=0.30.3"
underneath my [dependencies]
. As @ecmel stated it's the tao version 0.30.4 that's causing the problems.
Thank you, I have opened a PR to fix it in https://github.com/tauri-apps/tao/pull/1000
Fix is published run cargo update -p tao
in src-tauri
(and remove tao = "=0.30.3"
if you added that workaround)
Describe the bug
Did a basic install like so:
Then did
npm run tauri android init
:Then attempted to run the dev environment
npm run tauri android dev
:Reproduction
Please see the bug description for reproduction.
Expected behavior
No response
Full
tauri info
outputStack trace
No response
Additional context
No response