DaAnalyst

DaAnalyst

Elixir Desktop starts then crashes in Android Studio

So, I just tried running our large Phoenix LiveView app as a Desktop app and it worked on my Linux (Intel) machine.

Then I tried android example app (in Android Studio) and it starts then crashes. Won’t even try our web app because it won’t run as it is on Android for sure for a number of reasons, but I’d like to see the android example app running before engaging further into thinking about porting our web app.

The short history of steps and issues with the android example app:

  1. The (new version of) Android Studio complained about Java 21 not being supported by the app so I let it use Oracle Java 1.18 SDK then it worked.
  2. Then the run_mix failed because it required libglib2.0-dev (even for Android?), so I installed it and then it passed.
  3. After this, the emulator started and the Todo app too but as soon as it starts it crashes (the Todo app). There was a notification on Android 16KB page size error.
  4. I created a new instance out of the 36.1 and edited it to 33 (downloaded the API). The page size notification is no more, but the Todo app still crashes a couple of secs after opening it.

Can you help on how to proceed?

Thanks

EDIT: This is from the Android Studio Logcat:

[notice] Application todo_app exited: exited in: TodoApp.start(:normal, [])
** (EXIT) exited in: DBConnection.Holder.c...
: TodoApp.Repo, timeout: 15000, pool_size: 10])
** (EXIT) no process: the process is not alive or there's no process cu...

Most Liked

DaAnalyst

DaAnalyst

@dominicletz So I found the bug - it’s the combo of an unpinned :exqlite version (that :ecto_sqlite3 depends on) and the prebuilt Erlang/Elixir.

The quick fix is adding something like this to the demo-example-app’s mix.exs:

{:exqlite, "0.15.0", override: true},

Where Next?

Popular in Discussions Top

matthias_toepp
I’d love to hear what people think about Wisp, the new Gleam web framework started by Gleam’s primary creator Louis Pilfold. Gleam, alon...
New
blackode
Elixir Upgrading is so Simple in Ubuntu and It worked for me Ubuntu 16.04 git clone https://github.com/elixir-lang/elixir.git cd elixir...
New
cvkmohan
The upcoming Phoenix 1.6 release looks very interesting. Became a habit to watch the commits - and - what they are bringing in. phx.gen...
New
AstonJ
Please see the new poll here: Which code editor or IDE do you use? (Poll) (2022 Edition) It’s been a while since we first asked this, I...
208 31307 143
New
saif
Hello everyone, Long time lurker first time poster here. I’ve recently begun working on Elixir full-time again! :raised_hands: It’s been...
New
rower687
Hi all, I’ve been reading a lot about the “let it crash” term and how supervising processes and the whole messaging passing make an elixi...
New
boundedvariable
I am going through the kafka architecture. All the features what the kafka is providing are already in Erlang. I would like hear your opi...
New
rms.mrcs
A couple of days ago I was discussing with a friend about different approaches to write microservices. He said that if he was going to w...
New
cblavier
Hey there, It’s been more than a year since we started using LiveView as our main UI library and building a whole library of UI componen...
New
New

Other popular topics Top

vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New
AstonJ
Seen any cool LiveView demos, sample apps or examples? Please post them here! :003:
New
dogweather
I wrote this comment on r/haskell, and it’s not popular there. :wink: But I think I’m on to something… Haskell reminds me of Java, and e...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New

We're in Beta

About us Mission Statement