-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I compile the android apk for example/hello_world? #1954
Comments
Perhaps @rib or @Zoxc can help out - they have been doing some recent Android work. |
I'd try to follow the eframe example here. |
Yeah, mabe you can take a look at some of the Android examples we have here: https://github.com/rib/android-activity/tree/main/examples, including this agdk-egui example. Those examples each have a README.md with some instructions for how they can be compiled. We'll hopefully also be adding an eframe based example soon too: https://github.com/rib/android-activity/pull/14 |
This should hopefully be fixed by https://github.com/rib/android-activity/pull/23 Btw @sry948749099 the egui/eframe based example was landed in |
Who need a boilerplate, look at my https://github.com/inferrna/hello_world_android_egui - it compiles and works as just for now. |
I have tried two methods, first, i used FFI compile hello_world to a shared lib, then used MainActivity in android studio, but, get a fatal problem.
second, I change the method to use
cargo apk build...
, but the apk also cannot run in android devices. I also try to use the NativeActivity method in android studio, but error:The text was updated successfully, but these errors were encountered: