Does anyone have a somewhat working Android example? #4905
-
I understand that Android support is 'broken', but I think we need to have a list somewhere that shows exactly how it's broken. I've been attempting to get a working example for a while now, but I'm running into errors on fresh clones of the Bevy repo like missing shared libraries, vk swapchain errors and so on. Currently I see screenshots of people getting something visual at least but I cannot find a repo or guide that show how to get Bevy into a basic workable state on Android. Currently I'm hung up on the ndk libraries returning null pointers when attempting to get the current activity and can't tell if it's my issue or an issue affecting everyone. I feel like I'm missing something since these screenshots exist there's an example folder that is being updated. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 10 replies
-
This broke at the 0.6 release of Bevy, due to the rendering rework. There's been ongoing work to try and fix this (see #4139), but it requires dedicated attention by Android experts (if you have it, reviews would be 💯). |
Beta Was this translation helpful? Give feedback.
-
Mismatched ndk-glue between Bevy and winit: #4774This only happens on main |
Beta Was this translation helpful? Give feedback.
-
Issue getting the window on Bevy start #3639 #4139This happens since 0.6 |
Beta Was this translation helpful? Give feedback.
-
Linking issue on compilation #4616I can't talk much about this one as I never reproduced it but it seems to happen to many people |
Beta Was this translation helpful? Give feedback.
-
Android: Panic, VK_ERROR_NATIVE_WINDOW_IN_USE_KHR with minimal example. #4538This one is my current issue, but I don't know enough about Vulkan to start with, so I'm currently crash coursing myself on this. Edit: There are some inherent issues with this fix that should be addressed in the Android lifetime issues(like not being able to resume the application, or proper fixes for when to get window/activity pointers), but this technically gives a working, non crashing application with some input and visual output. So currently I have a somewhat working Android example :D Thanks! |
Beta Was this translation helpful? Give feedback.
Android: Panic, VK_ERROR_NATIVE_WINDOW_IN_USE_KHR with minimal example. #4538
This one is my current issue, but I don't know enough about Vulkan to start with, so I'm currently crash coursing myself on this.
Edit:
Freshly cloning 0.8 and applying my fix at least stops the black screen issue on start up.
There are some inherent issues with this fix that should be addressed in the Android lifetime issues(like not being able to resume the application, or proper fixes for when to get window/activity pointers), but this technically gives a working, non crashing application with some input and visual output.
So currently I have a somewhat working Android example :D Thanks!