Open jkelleyrtp opened 7 months ago
https://stackoverflow.com/a/43742161
Here's an SO answer that fixes it - I think the fact that android studio defaults to arm
instead of arm64
on mac is causing the issue.
We can set a default one, but the default behavior is to choose the first option alphabetically.
However, I'm not sure we want the glue to generate different plugin code.
Ideally we want to generate arm64 as the default since most android devices run arm64 these days, however there are many x86 users out there that don't want to run under emulation.
We could set the default to be based on the user's OS target, but really it should be building for whatever simulator they have running...
Describe the bug
If I reduce the rust plugin build targets down to just the arm64-v8a in RustPlugin.kt, then it works.
I'm sure we don't want that to be the fix - I think the issue is that the build script is only generating one split apk or it's generating the wrong one for the target platform.
From what I can tell, it's trying to use the "armeabi-v7a" arch which is why this is failing, so it might be down to selection.
I think we can fix this by getting RustPlugin.kt to select the right platform for the target simulator/device.
Screenshots
Platform and Versions (please complete the following information): Host OS: macos Target OS: android Rustc: 1.76 Ouput of
cargo mobile doctor
: