Maybe this discussion helps you, it is including your case with Android Release mode:
This is how it is implemented in Space Pirates via require(…):