# Running Julia on Android with Flutter & SyslabCC AOT (7.2MB only!)

**URL:** https://discourse.julialang.org/t/running-julia-on-android-with-flutter-syslabcc-aot-7-2mb-only/121999
**Category:** Community
**Tags:** aot, android, embedded
**Created:** [October 30, 2024, 3:31pm UTC](https://discourse.julialang.org/t/running-julia-on-android-with-flutter-syslabcc-aot-7-2mb-only/121999 "2024-10-30T15:31:03Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![thautwarm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thautwarm/32/37760_2.png) [@thautwarm](https://discourse.julialang.org/u/thautwarm)
#### Post date: [October 30, 2024, 3:31pm UTC](https://discourse.julialang.org/t/running-julia-on-android-with-flutter-syslabcc-aot-7-2mb-only/121999/1 "2024-10-30T15:31:03Z")

</div>

The repo is here, and you can directly build it as a regular Flutter project.

[thautwarm/julia-android-example: Running Julia Code on Android with Flutter (UI) & Rust (Build System) & SyslabCC (Julia AOT Compiler)](https://github.com/thautwarm/julia-android-example/tree/main)

Unfortunately, the SyslabCC released for public use currently does not work with Flutter Windows/macOS build. You might just use the Android build, or build it under some Linux distro.

The built APK is a small scientific app for running heat equation simulation. The callsite of the Julia function is made in Rust (using Rinf) at [here](https://github.com/thautwarm/julia-android-example/blob/6cf057be600abf59fd8f6a01277ece92de1f4091/native/hub/src/sample_functions.rs#L57), which is simply a ccall in Rust.

 ![a89a32998b673443ac366a71ac169602](https://global.discourse-cdn.com/julialang/original/3X/8/0/80cad678047c6a77171d0151b9903e65ffb5796d.jpeg)

---

<div class="post-metadata">

### Author: ![thautwarm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thautwarm/32/37760_2.png) [@thautwarm](https://discourse.julialang.org/u/thautwarm)
#### Post date: [October 30, 2024, 3:32pm UTC](https://discourse.julialang.org/t/running-julia-on-android-with-flutter-syslabcc-aot-7-2mb-only/121999/2 "2024-10-30T15:32:09Z")

</div>

You can build the releases yourself with simply:

```julia
 flutter build apk --split-per-abi

```

Also, the prebuilt releases can be downloaded from [Releases · thautwarm/julia-android-example](https://github.com/thautwarm/julia-android-example/releases), enjoy it!

---

<div class="post-metadata">

### Author: ![thautwarm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thautwarm/32/37760_2.png) [@thautwarm](https://discourse.julialang.org/u/thautwarm)
#### Post date: [October 30, 2024, 3:33pm UTC](https://discourse.julialang.org/t/running-julia-on-android-with-flutter-syslabcc-aot-7-2mb-only/121999/3 "2024-10-30T15:33:14Z")

</div>

This video shows UI/Julia interactions inside the app:

---

<div class="post-metadata">

### Author: ![photor](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/photor/32/14343_2.png) [@photor](https://discourse.julialang.org/u/photor)
#### Post date: [October 31, 2024, 4:09am UTC](https://discourse.julialang.org/t/running-julia-on-android-with-flutter-syslabcc-aot-7-2mb-only/121999/4 "2024-10-31T04:09:01Z")

</div>

cool!

---

<div class="post-metadata">

### Author: ![mrufsvold](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mrufsvold/32/31600_2.png) [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)
#### Post date: [October 31, 2024, 6:10pm UTC](https://discourse.julialang.org/t/running-julia-on-android-with-flutter-syslabcc-aot-7-2mb-only/121999/5 "2024-10-31T18:10:26Z")

</div>

This is so, so cool!
