0 votes

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.

asked Aug 30, 2018 in Engine by M-Ody (23 points)

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

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: https://textuploader.com/d2o3b

1 Answer

+1 vote
Best answer

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
answered Aug 31, 2018 by M-Ody (23 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.