Custom build : Godot do not initialize singletons from android modules

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

Hello,

The android modules does not work when I use my custom build/templates (latest master 3.1), the modules load well, but singletons are not created, and I can’t figure why

Even GodotPayment is not available, I added a print to dislay all the current singletons in engine.cpp:

When using Engine.get_singleton('GodotPayments') I get

Failed to retrieve non-existent singleton 'GodotPayments'

adb logcat :

10-10 21:28:40.975 20132 20179 I godot   : Loading module: org/godotengine/godot/GodotPaymentV3
10-10 21:28:40.976 20132 20179 I godot   : Loading module: org/godotengine/godot/FireBase
10-10 21:28:40.976 20132 20179 I godot   : Loading module: org/godotengine/godot/SQLBridge
10-10 21:28:41.151 20132 20179 I godot   : OpenGL ES 3.0 Renderer: Mali-T830
10-10 21:28:43.462 20132 20179 E godot   : **ERROR**: Failed to retrieve non-existent singleton 'GodotPayments' in:JavaScript;ClassDB;Marshalls;JSON;PhysicsServer;Physics2DServer;ProjectSettings;InputMap;VisualServer;Input;AudioServer;Geometry;ResourceLoader;ResourceSaver;OS;Engine;ARVRServer;IP;TranslationServer;Performance;JavaClassWrapper;

Do you have any idea? Thanks !

I have exactly the same problem in the latest build with the exact same modules. I have a build from July this year which works fine and I can’t find any difference in configuration between them.

wombatwingdings | 2018-10-13 20:52

:bust_in_silhouette: Reply From: wombatwingdings

I think this is a genuine bug recently introduced. See Can't get Android modules with Engine.get_singleton() anymore · Issue #22859 · godotengine/godot · GitHub