0 votes

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

https://godotengine.org/article/godot-3-2-will-get-new-android-plugin-system

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: https://docs.godotengine.org/en/stable/development/compiling/compiling_for_android.html

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 'androidadddependency':
File "E:\godot\SConstruct", line 506:
config.configure(env)
File "modules/admob\config.py", line 8:
env.androidadddependency("compile ('com.google.android.gms:play-services-ads:16.0.0') { exclude group: 'com.android.support' }")

Am I misunderstanding or missing something? Thank you.

Godot version 3.2.4
in Engine by (16 points)

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.

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

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

How do I recompile the engine for Android after that?

Please log in or register to answer this question.

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.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.