在使用 Tauri2 遇到了一个兼容适配的问题,pc 端和安卓 dev 调试时图片可以正常显示, build 安卓端会出现图片不展示的问题 但是 build PC 端没有类似的问题,只有 build 安卓会有。 dev 安卓 OKdev PC OKbuild PC OKbuild 安卓 ❌ 图片不显示 tauri, Android, 图片
tauri info: [✔] Environment - OS: Windows 10.0.26200 x86_64 (X64) ✔ WebView2: 149.0.4022.69 ✔ MSVC: Visual Studio 生成工具 2022 ✔ rustc: 1.92.0 (ded5c06cf 2025-12-08) ✔ cargo: 1.92.0 (344c4567c 2025-10-21) ✔ rustup: 1.28.2 (e4f3ad6f8 2025-04-28) ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default) - node: 22.22.0 - pnpm: 10.18.1 - npm: 11.12.1 - bun: 1.3.8 [-] Packages - tauri 🦀: 2.9.5, (outdated, latest: 2.11.2) - tauri-build 🦀: 2.5.3, (outdated, latest: 2.6.2) - wry 🦀: 0.53.5, (outdated, latest: 0.55.1) - tao 🦀: 0.34.5, (outdated, latest: 0.35.3) - tauri-cli 🦀: 2.9.6 (outdated, latest: 2.11.2) - @tauri-apps/api ⱼₛ: 2.9.1 (outdated, latest: 2.11.0) - @tauri-apps/cli ⱼₛ: 2.9.6 (outdated, latest: 2.11.2) [-] Plugins - tauri-plugin-global-shortcut 🦀: 2.3.1, (outdated, latest: 2.3.2) - @tauri-apps/plugin-global-shortcut ⱼₛ: not installed! - tauri-plugin-opener 🦀: 2.5.3, (outdated, latest: 2.5.4) - @tauri-apps/plugin-opener ⱼₛ: not installed! - tauri-plugin-fs 🦀: 2.4.5, (outdated, latest: 2.5.1) - @tauri-apps/plugin-fs ⱼₛ: not installed! - tauri-plugin-http 🦀: 2.5.5, (outdated, latest: 2.5.9) - @tauri-apps/plugin-http ⱼₛ: not installed! [-] App - build-type: bundle - CSP: unset - frontendDist: ../out - devUrl: http://localhost:3000/ - framework: React (Next.js) - bundler: Webpack