dioxus
dioxus copied to clipboard
Android 10 runtime exception unwrap panic
Problem
Hello! There is an unwrap exception on Android 10 when I'm trying to run Dioxus app. Just right at the app start. App source + nix flake dev shell: https://github.com/functora/functora.github.io/tree/master/rust/cryptonote Exception:
thread 'main' (21425) panicked at .cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tao-0.34.5/src/platform_impl/android/mod.rs:818:10:
called `Result::unwrap()` on an `Err` value: JavaException
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
FATAL EXCEPTION: Thread-2
java.lang.NoSuchMethodError: no non-static method "Landroid/view/WindowManagerImpl;.getCurrentWindowMetrics()Landroid/view/WindowMetrics;"
Create HprofDebugEx
Steps To Reproduce
Run Dioxus app on Android 10.
Expected behavior
App should run without exceptions.
Environment:
- Dioxus version: dioxus 0.7.2
- Rust version: rustc 1.91.1 (ed61e7d7e 2025-11-07)
- OS info: NixOS 25.05
- App platform: Android 10