dodorare / crossbow

Cross-Platform build tools and toolkit for games and game engines written in Rust! 🦀
https://crossbow.dodorare.com/
Apache License 2.0
201 stars 13 forks source link

java.lang.UnsatisfiedLinkError #156

Closed maxsilnov closed 2 years ago

maxsilnov commented 2 years ago

Crossbow version

crossbow 0.2.2

What you did

create apk with "crossbundle build android -s=native-apk"

What went wrong

Additional information

Hi! This is my problem on Android photo_2022-09-12_13-07-00 I use "bevy" template and "aarch64-linux-android" architecture on windows Folder and library isset in .apk 2022-09-12_13-13-37

What am I doing wrong ?

enfipy commented 2 years ago

I'm pretty sure it's because of audio dependencies. Can you try to remove some features from bevy and make it like this:

bevy = { version = "0.8.1", default-features = false, features = ["bevy_winit", "render", "bevy_asset"] }

And with bevy patch that in crossbow root Cargo.toml. Because bevy has different ndk-glue versions and will fail otherwise.

P.S: If you want to use audio - you will need to link like specified here: https://github.com/katyo/oboe-rs/issues/28. I think we will able to add a feature to link it much easier.

maxsilnov commented 2 years ago

Yes, it works, thank you so much =)

enfipy commented 2 years ago

Glad to hear this! I also hope we will merge ndk-glue patch to bevy real soon ;)