Could not find symbol when build app for device 'epix' use Connect IQ 4.2.4

Could not find symbol when build app for device 'epix' use Connect IQ 4.2.4

Other device will works.

Does anyone else have the same problem can give me some tips to solve.

var screenSizes = new Array<ScreenSizeMap>[0];
screenSizes.add(new ScreenSizeMap(130, 159, 130, 2, 1));
screenSizes.add(new ScreenSizeMap(160, 189, 160, 3, 1));

Get error 

Error: Symbol Not Found Error
Details: Could not find symbol 'add'

And

var barcodeChars = barcode.toUpper().toCharArray();

Gets error

Error: Symbol Not Found Error
Details: Could not find symbol 'toCharArray'