Custom export templates crashing on Android

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By M-Ody

I’m using Godot 2.1.5 (custom build) because the 3.0 OpenGL 3 issue, I’m and facing a big problem I have no idea how to solve.
Everything was going fine until I exported a version to launch on Google Play. An error popped saying I was using API 23, and Google wants me to use API 26. Fair enough, I thought. I followed the guide built a new release export template from the same source I built my custom Godot build.
Unfortunately, now my app crashes on my Android (7.1) if I run the app from the editor and gives me an error on install if I try through installation.

Everything was just fine before, so must be my template export, but I followed the guide. The only thing that I’m not sure I’m following is the “Android build tools version 19.1”, I maybe have a newer version. Could be that?

Btw, the doc says Android API 23.0.3, does that mean I can’t build with another version? I have 27.0.3, 28.0.1 and 28.0.2 installed because Google asks for 26 or greater.

I really appreciate any help here guys.

you can see better installation error message if run godot in terminal.
what error is exactly?

volzhs | 2018-08-30 07:30

Not sure I understand. I’m working on Windows 10, and Godot opens a terminal when I open the editor, but there’s nothing there after the command to open the app (intent). The crash report on my phone is here:

M-Ody | 2018-08-30 15:45

:bust_in_silhouette: Reply From: M-Ody

I got it to work!

So, the problem was on a module I was using (admob) that was not being compiled to the custom template and thus was crashing the app.

The solution for me was clean the compiled templates and build again, and for some reason, it worked!

To clean the build:

scons platform=android target=release --clean

Build again:

scons platform=android target=release

hey, i’m having exactly the same problem, where do i enter those commands?

MicasiO | 2020-07-13 22:10