Custom C++ module causes scene to be unloadable in Android export.

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

This all works fine in the editor, and in the linux build. When I export the project for Android it runs without error, but the object that includes the module in its script will not load.


#custom cpp module
var contiguityChecker = #<- comment this out and the District.tscn will load fine

Main file:

district_object = load("res://Objects/District.tscn") #<- will be null even though path name is correct

district_object will be null if the line “var contiguityChecker =” is not commented out.

I built the custom build templates. The linux build works, but the android build doesn’t.