#Failed to assemble app bundle (Android)

1 messages · Page 1 of 1 (latest)

surreal wren
#

I tried to compile the Android target but always get the error: 'The file name or extension is too long.' I already tried moving the folder to C:/, but it didn't help. Any tips? I'm using 0.7.0-alpha.0

surreal wren
#

I'm running dx serve --platform android under Windows 11

sour cobalt
#

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!

surreal wren
#

I hope someone from the team gets back to us soon with a workaround until it’s fixed

surreal wren
#

Any update yet?

placid sky
#

Oh this is fixed on git I belive

surreal wren
surreal wren
#

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?

GitHub

Fullstack app framework for web, desktop, mobile, and more. - DioxusLabs/dioxus

#

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

placid sky
#

You can try an older commit to see it might’ve worked at some point?

surreal wren
placid sky
placid sky
#

I think we merged a fix today for windows android but there’s a few bugs that I’m aware of (ie mobile fullstack)

surreal wren
#

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)

surreal wren
#

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)

placid sky
#

I had challenges with the powershell being the correct one since I was on aarch64 - are you using x86 or arch64?

surreal wren
surreal wren
#

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

placid sky
#

Amazing!!

#

We’re quickly fixing the little bugs

surreal wren
sour cobalt
#

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

surreal wren
sour cobalt
#

On x86 windows, using latest commit (77d10a4) of both cli and Dioxus this still fails on bundling.

sour cobalt
#

this is fixed for me in alpha 0.7.1