Creating Android shared lib


#1

How can I create a shared lib ‘.so’ that can be used in my Android app, and how can I use it?


#2

You can look at my example project: https://github.com/Dushistov/rust_swig/tree/master/android-example , look at Cargo.toml and https://github.com/Dushistov/rust_swig/blob/master/android-example/.cargo/config also you may be interesting to look at gradle rules to run cargo from gradle build (so it is possible to run build from Android Studio)