Seems like my android build does not support try catch.
I’ve done something like this
var a = ‘a5’;
var b = ‘a1’;
var c = null;
try{
c = require(a);
} catch(e){
cc.log('could not find ’ + a);
c = require(b);
}
On web it flows correctly. however, in android the flow stops there as it could not catch the error.
With adb, it logged the general exception instead of my log.
Cheers.