Were you loading a save when this error showed up? If so, try a different one or start a new game and see if you run into the same error. Looking at the code, StageRight is defined but the function that's defined on line 4883 shouldn't have been defined that way (Oni defined a function with a default parameter, but default parameters can't be variables. Only scalar values and/or macros or whatever python's equivalent is.). But the only way to run into that error is if the function is being called with no parameters or lacking a sprite location. Which, shouldn't happen.
With that said, I've seen other people reporting this on android devices as well so it's possible that the packager and/or joiplay/whatever framework that's letting you play the game on android didn't do it's job right and the value is either lost or the context is lost. In which case, you'll need to take it up with the packager/framework/joiply/whatever.