You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--- stderr
thread 'main' panicked at C:\Users\rohan.cargo\registry\src\index.crates.io-6f17d22bba15001f\wry-0.43.1\build.rs:34:11:
Failed to canonicalize WRY_ANDROID_KOTLIN_FILES_OUT_DIR path C:\Users\rohan\dioxus\examples\mobile_demo\gen\android/app/src/main/kotlin/com/example/mobile_demo
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: Failed to compile lib Failed to run cargo build`: command ["cargo", "build", "--package", "mobile-demo", "--manifest-path", "C:
\Users\rohan\dioxus\examples\mobile_demo\Cargo.toml", "--target", "aarch64-linux-android"] exited
with code 101
There was another error in the source Github repo related to the following, but I commented it out to focus on the build error.
packages/core/src/reactive_context.rs
// If there is already an update queued, we don't need to queue another
// if !tx.is_empty() {
// return;
// }
commands:
cargo mobile init
cargo android build
Interestingly, if I remove the com. from the package names it will compile, but Android studio will complain that the package needs "."
Note that I'm very new to android dev and Rust for that matter.
Problem
I've tried running the mobile example from both the DOC: https://dioxuslabs.com/learn/0.5/reference/mobile and the source Github Repo. The same error is shown for both.
--- stderr
thread 'main' panicked at C:\Users\rohan.cargo\registry\src\index.crates.io-6f17d22bba15001f\wry-0.43.1\build.rs:34:11:
Failed to canonicalize
WRY_ANDROID_KOTLIN_FILES_OUT_DIR
path C:\Users\rohan\dioxus\examples\mobile_demo\gen\android/app/src/main/kotlin/com/example/mobile_demonote: run with
RUST_BACKTRACE=1
environment variable to display a backtracewarning: build failed, waiting for other jobs to finish...
error: Failed to compile lib
Failed to run
cargo build`: command ["cargo", "build", "--package", "mobile-demo", "--manifest-path", "C:\Users\rohan\dioxus\examples\mobile_demo\Cargo.toml", "--target", "aarch64-linux-android"] exited
with code 101
There was another error in the source Github repo related to the following, but I commented it out to focus on the build error.
packages/core/src/reactive_context.rs
commands:
Interestingly, if I remove the
com.
from the package names it will compile, but Android studio will complain that the package needs "."Note that I'm very new to android dev and Rust for that matter.
Environment:
I'm interested in fixing this myself but don't know where to start
The text was updated successfully, but these errors were encountered: