Compilling and export for android

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By tulenalex
:warning: Old Version Published before Godot 3 was released.

First. I have big trouble with compiling version 2.0.1 stable for android on windows. On command line scons terminated the build with this message:

***[drivers\libdrivers2.android.debug.armv7.neon.a].

I have no idea how to fix it.


Next trouble is with exporting for android. My phone has android 2.3.0, Godot 2.0.1 stable. After exporting and downloading the apk-file on SDCard, I tried to setup and launch my game. After launching the Godot loading splash screen shows on the display, and then the application crashes. No messages are shown, it just closes and returns back to menu.

Please help me to solve these problems. I like Godot very much, but these problems are just driving me insane.

Note, please feed your questions through a spellchecker first.

Bojidar Marinov | 2016-03-24 09:30

:bust_in_silhouette: Reply From: batmanasb

You only need to compile the engine and android template if you are using a custom module (like for AdMob or something). Then you have to link the template you compiled to the “Release” section in the export window.

However, your actual problem is that Godot gave up on supporting anything below Android 4.0 due to efficiency issues. So yeah, I got lucky with my old 4.4.2 phone, but you’ll need a newer phone :frowning:

Sorry, something did not specify. I have included a module ENet for godot. Also today I decided to launch my game on android 4.4.2. The result remains the same =(.

All my attempts to compile Godot for android Scons will terminated because of one error.

tulenalex | 2016-03-24 08:26

First try disabling the module and exporting to android using the pre-compiled build. Then if that works, try compiling your own engine and templates (with the module still disabled), then if that works, it means your module isn’t working for some reason.

When compiling it, make sure you set all the export variables for Java and the android libraries. And then link the template you compiled.

batmanasb | 2016-03-24 10:15