How to recompile android source

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

I want to modify java files in the godot engine, but when I export my game’s apk, the changes I made do not appear. I am using 3.2.4

It says that I just need to have “use custom builds” selected and then when ever I export my apk, it will rebuild the template.

I tried the old way: Compiling for Android — Godot Engine (stable) documentation in English

but I am using custom plugins and it is giving errors:

E:\godot>scons platform=android target=release
scons: Reading SConscript files …
Building for Android (armv7) (with NEON)
AttributeError: ‘SConsEnvironment’ object has no attribute ‘android_add_dependency’:
File “E:\godot\SConstruct”, line 506:
File “modules/admob\”, line 8:
env.android_add_dependency(“compile (‘’) { exclude group: ‘’ }”)

Am I misunderstanding or missing something? Thank you.

You are not telling why you want to compile C++ Godot but talk about Java. The new build system can use res://android/your-customization to export to android.

clemens.tolboom | 2021-04-22 14:57

Some of the java files are only in the engine like platform/android/java/lib/src/org/godotengine/godot/

I also want to do some C++ changes in: platform/android/java_godot_io_wrapper.cpp

How do I recompile the engine for Android after that?

Xioor | 2021-04-23 04:09