# How to compile Android library

**URL:** <https://discourse.julialang.org/t/how-to-compile-android-library/83519>\
**Category:** General Usage\
**Tags:** android\
**Created:** [June 29, 2022, 1:34pm UTC](https://discourse.julialang.org/t/how-to-compile-android-library/83519 "2022-06-29T13:34:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZR233](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zr233/32/37526_2.png) [@ZR233](https://discourse.julialang.org/u/ZR233)\
**Post date:** [June 29, 2022, 1:34pm UTC](https://discourse.julialang.org/t/how-to-compile-android-library/83519/1 "2022-06-29T13:34:18Z")

</div>

I want to make a library for android app, but PackageCompiler doc didn’t tell how to do it.

---

<div class="post-metadata">

**Author:** ![Palli](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/palli/32/3380_2.png) [@Palli](https://discourse.julialang.org/u/Palli)\
**Post date:** [February 29, 2024, 7:08pm UTC](https://discourse.julialang.org/t/how-to-compile-android-library/83519/2 "2024-02-29T19:08:50Z")

</div>

Welcome to Julia!

I only saw the question now, and Android (and iOS) are not well supported (yet). I.e. they have no official Julia support.

PackageCompilerl.jl supports the same platforms Julia supports, i.e. not explicitly mobile/Android. It might work on Android, since I think Android only needs standard Linux libraries?! You will then need to bundle Julia’s runtime, i.e. Linux Julia on Andoird (and maybe macOS Julia would work on iOS?), but it’s going to be non-small, and docs not really telling how (maybe Linux docs will work with modification):

> **[Libraries · PackageCompiler](https://julialang.github.io/PackageCompiler.jl/stable/libs.html)**
>
> Documentation for PackageCompiler.

Note, there’s also:

> **[GitHub - tshort/StaticCompiler.jl: Compiles Julia code to a standalone...](https://github.com/tshort/StaticCompiler.jl)**
>
> Compiles Julia code to a standalone library (experimental) - tshort/StaticCompiler.jl

and it neither supports Android explicitly, but it might work (also for iOS? does it have the same dynamic linking as on macOS?). This will give you small libraries, but only for a subset of Julia code, most Julia code will not work.
