Skip to main content

Android setup

info

This guide was written for flutter_rust_bridge v1, thus some content may be outdated. The quickest approach to integrate is to follow the one-click approach in flutter_rust_bridge's quickstart page.

Before trying this, ensure you can run the example project.

Rust targets

If you have not already done so, cross-compiling to Android requires some additional targets which can easily be added:

rustup target add \
aarch64-linux-android \
armv7-linux-androideabi \
x86_64-linux-android \
i686-linux-android