#Failed to assemble app bundle (Android)
1 messages · Page 1 of 1 (latest)
I'm running dx serve --platform android under Windows 11
yeah i get this exact message too on Windows, whereas on my Mac it builds but crashes on launch.
there were a few tweaks to android build/launch in this version, hopefully wrinkles will be smoothed over soon!
I hope someone from the team gets back to us soon with a workaround until it’s fixed
Any update yet?
Oh this is fixed on git I belive
So, integrate the crate via branch in Cargo.toml should fix it? I’ll test it today after work.
I ran cargo install --git https://github.com/DioxusLabs/dioxus --rev 78e65f2 dioxus-cli to update the CLI and also changed the dependency in Cargo.toml to dioxus = { git = "https://github.com/DioxusLabs/dioxus", rev = "78e65f2" }.
The issue seems to be resolved, but now I'm getting the following error:
17:46:06 [dev] Build failed: Failed to assemble app bundle. How can I fix that?
Is there a way to display the error in more detail? I’m already using --verbose and --trace. The issue only occurs when compiling for mobile (android) target. It works fine with the desktop target. @placid sky Do you know a fix? I would really thank you
You can try an older commit to see it might’ve worked at some point?
Which commit would you recommend?
We create a few log files, look for a log containing a few lines that mention the link_args stdout/stderr
https://github.com/DioxusLabs/dioxus/blob/main/packages/cli/src/build/request.rs#L675-L684
The one right after merging the patching PR in the first place
Inlines the work from https://github.com/jkelleyrtp/ipbp to bring pure rust hot-reloading to Dioxus.
fast_reload.mp4
The approach we're taking works acr...
I think we merged a fix today for windows android but there’s a few bugs that I’m aware of (ie mobile fullstack)
The last commit was 78e65f2, which included the Windows fix. I just tried checking out 76ed47a, but then I get an error. So I guess the problem must be somewhere else.
thread 'main' panicked at packages\cli\src\serve\runner.rs:73:24:
not yet implemented
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
First, I had already tried 78e65f2, and that's when the error above occurred (app bundle)
Do I need to use a specific NDK version or OpenSSL? As I mentioned, I'm currently using the latest version via vcpkg, but I don't think that's what's causing the issue
When I run it in debug with JetBrains, I don't get any additional logs either
Failed to assemble app bundle (Android)
I had challenges with the powershell being the correct one since I was on aarch64 - are you using x86 or arch64?
I compiled with x86_64-linux-android as the target. Should I use aarch64 instead even though I'm compiling under Windows 11 64-bit as the host? Or what do you mean by that?
I tested commit d435f00, and it seems to work. It looks like everything functions correctly starting from commit d435f00 or later. This means Android as a target is working again now @placid sky Ty
For everyone still encountering the error:
Run: cargo install --git https://github.com/DioxusLabs/dioxus --rev d435f00 dioxus-cli
Update your Cargo.toml with: dioxus = { git = "https://github.com/DioxusLabs/dioxus", rev = "d435f00" }
That’s it! (Works from commit d435f00 onwards I think)
Strange this is not working for me - have cargo cleaned and made new template projects etc so I don't think it's some weird cache issue but definitely still having the bundling issue on pc, x86
Have you also updated the CLI? I have to say that my host system was x64 and not x86, so the instructions were just the way that worked for me
On x86 windows, using latest commit (77d10a4) of both cli and Dioxus this still fails on bundling.
this is fixed for me in alpha 0.7.1