# Using Julia on Android?

**URL:** <https://discourse.julialang.org/t/using-julia-on-android/8086>\
**Category:** General Usage\
**Tags:** android\
**Created:** [January 1, 2018, 1:01am UTC](https://discourse.julialang.org/t/using-julia-on-android/8086 "2018-01-01T01:01:33Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![mikecullen76](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mikecullen76/32/14261_2.png) [@mikecullen76](https://discourse.julialang.org/u/mikecullen76)\
**Post date:** [April 25, 2020, 8:55pm UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/24 "2020-04-25T20:55:17Z")

</div>

Thanks @xiaodai that worked perfectly. Running Julia on my android device right now. Cheers 👍

---

<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:** [April 26, 2020, 10:32am UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/25 "2020-04-26T10:32:37Z")

</div>

Running Julia on Android is cool, and while it is then in some sense an Android app, has anyone done an “independent” Android app in Julia. Even just a proof-of-concept “hello world” type? Or even better with an even loop working with the Java-based framework? As in an .APK file you could deploy to the Google Play store (runable without Ubuntu or other first installed), or done the first steps to what would end up as APK.

My understanding is that while useful, a Julia Android app is only really an Ubuntu app, running under Ubuntu, running in Android, and that is still a good step, but a long way from an APK?

I know the technical difficulties, you would want to runwith bionic, not regular libc, so is there something to help like libhybris, but for the other way:

[https://reverseengineering.stackexchange.com/questions/22547/how-to-use-x64-86-elf-file-from-an-apk-file-in-a-linux-machine](https://reverseengineering.stackexchange.com/questions/22547/how-to-use-x64-86-elf-file-from-an-apk-file-in-a-linux-machine)

Not related to Android or Bionic (only “just x86-64 for simplicity”), but I just found out Google has a plan (from 2019) for a new “libc in LLVM”:

[http://lists.llvm.org/pipermail/llvm-dev/2019-June/133308.html](http://lists.llvm.org/pipermail/llvm-dev/2019-June/133308.html)

Julia has support for musl, and while bionicis the default on Android, musl may work there (or is that only the plan?):

> **[Room\_For\_Cooperation-\_Bionic\_and\_musl.pdf](https://elinux.org/images/8/8b/Room_For_Cooperation-_Bionic_and_musl.pdf)**
>
> 731.93 KB

---

<div class="post-metadata">

**Author:** ![Geoffrey](https://avatars.discourse-cdn.com/v4/letter/g/bc8723/32.png) [@Geoffrey](https://discourse.julialang.org/u/Geoffrey)\
**Post date:** [August 9, 2020, 10:42am UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/26 "2020-08-09T10:42:06Z")

</div>

Hi,

sorry to dig up this topic but I’am trying to install Julia 1.3.1 with Userland and I ran into the same error as @Iulian.Cioarca about libopenblas.so which I think I have fixed with:

```julia
$execstack -c ./julia1.3.1/lib/julia/libopenblas.so

```

but I still can’t run julia:

 ![Screenshot_20200809-123842](https://global.discourse-cdn.com/julialang/original/3X/6/7/67864fa8a4040c79d36ff80ba47e5b5182cb1851.png)

here is the output of lscpu:

```julia
gsch@localhost:~$ lscpu
Architecture: armv7l
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s) list: 0-7
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 2
Vendor ID: ARM
Model: 4
Model name: Cortex-A53
Stepping: r0p4
CPU max MHz: 1401.0000
CPU min MHz: 768.0000
BogoMIPS: 38.00
Flags: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm aes pmull sha1 sha2 crc32

```

If someone manage to fix this error I’am all ear ! 🙂

---

<div class="post-metadata">

**Author:** ![simeonschaub](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/simeonschaub/32/216566_2.png) [@simeonschaub](https://discourse.julialang.org/u/simeonschaub)\
**Post date:** [August 9, 2020, 12:09pm UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/27 "2020-08-09T12:09:10Z")

</div>

Since 1.3.1 is not officially supported anymore, I would suggest trying this with Julia 1.5 first. It might have already been fixed since then.

---

<div class="post-metadata">

**Author:** ![Iulian.Cioarca](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iulian.cioarca/32/30166_2.png) [@Iulian.Cioarca](https://discourse.julialang.org/u/Iulian.Cioarca)\
**Post date:** [August 9, 2020, 12:15pm UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/28 "2020-08-09T12:15:02Z")

</div>

Update from my side:  
Julia 1.5 is working well, but meanwhile I also changed the phone and I’m on 64 bit Android 10.

---

<div class="post-metadata">

**Author:** ![Geoffrey](https://avatars.discourse-cdn.com/v4/letter/g/bc8723/32.png) [@Geoffrey](https://discourse.julialang.org/u/Geoffrey)\
**Post date:** [August 9, 2020, 12:22pm UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/29 "2020-08-09T12:22:15Z")

</div>

I try at first the 1.5 but there is no binaries for the armv7 architecture (32bits) for Julia version more recent than the 1.3.1 🙁

---

<div class="post-metadata">

**Author:** ![simeonschaub](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/simeonschaub/32/216566_2.png) [@simeonschaub](https://discourse.julialang.org/u/simeonschaub)\
**Post date:** [August 9, 2020, 3:52pm UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/30 "2020-08-09T15:52:53Z")

</div>

I am currently trying to build the latest master from source on my Raspberry Pi. Will let you know how that goes.

---

<div class="post-metadata">

**Author:** ![Geoffrey](https://avatars.discourse-cdn.com/v4/letter/g/bc8723/32.png) [@Geoffrey](https://discourse.julialang.org/u/Geoffrey)\
**Post date:** [August 11, 2020, 2:00pm UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/31 "2020-08-11T14:00:44Z")

</div>

Hi,

In my side I didn’t manage to install the 1.3.1 version but the 1.2.0 run smoothly (except for the libopenblas error which is fixed with execstack)

---

<div class="post-metadata">

**Author:** ![evad](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/evad/32/15756_2.png) [@evad](https://discourse.julialang.org/u/evad)\
**Post date:** [August 14, 2020, 4:21pm UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/32 "2020-08-14T16:21:31Z")

</div>

V1. 5 can’t be launched.

 ![Screenshot_20200815_002058_com.termux (1)](https://global.discourse-cdn.com/julialang/original/3X/0/e/0e5b79793dba437b556f6983eba24855c417b6b9.png)

---

<div class="post-metadata">

**Author:** ![lungben](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lungben/32/12314_2.png) [@lungben](https://discourse.julialang.org/u/lungben)\
**Post date:** [August 14, 2020, 4:28pm UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/33 "2020-08-14T16:28:41Z")

</div>

I got Julia 1.5 running on Android (Galaxy Pad S4) as follows:

> [@xiaodai](#):
>
> # Step 1
> 
> 1. Download the [termux](https://termux.com/) app on your Android (Play Store worked for me)
> 
> # Step 2
> 
> 1. Install Ubuntu on termux by following [this guide](https://github.com/MFDGaming/ubuntu-in-termux). For those who are too lazy to open the page, here are the instructions from the page
> 
> ### Installation steps
> 
> 1. Update termux: `apt-get update && apt-get upgrade -y`
> 2. Install wget: `apt-get install wget -y`
> 3. Install proot: `apt-get install proot -y`
> 4. Install git: `apt-get install git -y`
> 5. Go to HOME folder: `cd ~`
> 6. Download script: `git clone https://github.com/MFDGaming/ubuntu-in-termux.git`
> 7. Go to script folder: `cd ubuntu-in-termux`
> 8. Give execution permission: `chmod +x ubuntu.sh`
> 9. Run script: `./ubuntu.sh`
> 10. Fix resolv.conf: `cp ~/ubuntu-in-termux/resolv.conf ~/ubuntu-in-termux/ubuntu-fs/etc/` – for me not required
> 11. Now just start ubuntu: `./start.sh`
> 
> # Step 3
> 
> 1. Update `apt-get` and install wget (for downloading packages) install Julia using
> 
> ```julia
> apt-get update 
> apt-get upgrade
> apt-get install wget
> 
> ```

Then download and install the Julia 1.5 binaries for ARM (do not use `apt-get install julia` because this would install an old Julia version):

> **[Download Julia](https://julialang.org/downloads/)**
>
> The official website for the Julia Language. Julia is a language that is fast, dynamic, easy to use, and open source. Click here to learn more.

---

<div class="post-metadata">

**Author:** ![Geoffrey](https://avatars.discourse-cdn.com/v4/letter/g/bc8723/32.png) [@Geoffrey](https://discourse.julialang.org/u/Geoffrey)\
**Post date:** [August 21, 2020, 9:30pm UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/34 "2020-08-21T21:30:35Z")

</div>

The Galaxy Pad S4 is powered by a Snapdragon 835 which use a 64bits armv8 architecture. I think the issue of using julia on android is cause by the use of a old 32bits armv7 architecture

---

<div class="post-metadata">

**Author:** ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Post date:** [August 25, 2020, 8:46pm UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/35 "2020-08-25T20:46:20Z")

</div>

Work smoothly in a recent Xiaomi.  
The only thing is that to start Ubuntu the script in now ./startubuntu.sh instead of just ./start.sh

---

<div class="post-metadata">

**Author:** ![Ae-Mc](https://avatars.discourse-cdn.com/v4/letter/a/bc79bd/32.png) [@Ae-Mc](https://discourse.julialang.org/u/Ae-Mc)\
**Post date:** [September 27, 2020, 11:22pm UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/36 "2020-09-27T23:22:51Z")

</div>

I followed this instruction and got error `CANNOT LINK EXECUTABLE "julia"...`.  
For long time of googling I found the solution: [https://github.com/termux/termux-app/issues/1703#issue-676231188](https://github.com/termux/termux-app/issues/1703#issue-676231188)

**BE CAREFUL: IT COULD CAUSE DATA LOSS** (All my installed Python packages removed 😭 )

Just run it after installing Julia and all get work!

---

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [October 2, 2020, 5:17am UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/37 "2020-10-02T05:17:10Z")

</div>

Fyi, the Android Matlab keyboard seems to be quite useful with Julia too.

---

<div class="post-metadata">

**Author:** ![rifaz124](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rifaz124/32/21465_2.png) [@rifaz124](https://discourse.julialang.org/u/rifaz124)\
**Post date:** [January 28, 2021, 5:44pm UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/38 "2021-01-28T17:44:06Z")

</div>

How to connect termux Julia to jupyter notebook

---

<div class="post-metadata">

**Author:** ![rifaz124](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rifaz124/32/21465_2.png) [@rifaz124](https://discourse.julialang.org/u/rifaz124)\
**Post date:** [January 28, 2021, 5:44pm UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/39 "2021-01-28T17:44:49Z")

</div>

How to connect android Julia to jupyter notebook

---

<div class="post-metadata">

**Author:** ![lungben](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lungben/32/12314_2.png) [@lungben](https://discourse.julialang.org/u/lungben)\
**Post date:** [January 28, 2021, 6:39pm UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/40 "2021-01-28T18:39:22Z")

</div>

If your Jupyter server is running on another machine (e.g. Linux or Windows) you can just connect with your Android browser to it.

I do not know if running a Jupyter server in Termux is possible.

---

<div class="post-metadata">

**Author:** ![evad](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/evad/32/15756_2.png) [@evad](https://discourse.julialang.org/u/evad)\
**Post date:** [January 18, 2022, 3:14pm UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/41 "2022-01-18T15:14:50Z")

</div>

I just want to share how great to have Julia running on Android with an external keyboard.

the setup is simple:  
Termux + void-in-termux + Julia 1.7.1 + Pluto + Brave (dark theme)

 ![Screenshot_20220118_231152_com.brave.browser](https://global.discourse-cdn.com/julialang/original/3X/2/4/2484a4b6403fae8c2d91bde1152613120890a920.jpeg)

---

<div class="post-metadata">

**Author:** ![KajWiik](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kajwiik/32/199_2.png) [@KajWiik](https://discourse.julialang.org/u/KajWiik)\
**Post date:** [January 23, 2022, 8:31pm UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/42 "2022-01-23T20:31:21Z")

</div>

Couldn’t install Pluto, no problem to install Plots. Any clues?

 ![Screenshot_20220123_222727_com.termux](https://global.discourse-cdn.com/julialang/original/3X/f/7/f7ba135daeca50d97ee41dfa56bfe602ea965585.jpeg)

---

<div class="post-metadata">

**Author:** ![evad](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/evad/32/15756_2.png) [@evad](https://discourse.julialang.org/u/evad)\
**Post date:** [January 23, 2022, 8:49pm UTC](https://discourse.julialang.org/t/using-julia-on-android/8086/43 "2022-01-23T20:49:19Z")

</div>

Maybe try to remove .julia/registries/ folder?

[Previous page](https://discourse.julialang.org/t/using-julia-on-android/8086.md?page=1)

[Next page](https://discourse.julialang.org/t/using-julia-on-android/8086.md?page=3)
