getcomponent' is not a member of 'object'

getting this error whan compiling on android, but works fine on windows.
please give me some alternative way to correct this error. tnx.

for (var checkDoor : GameObject in cells*.GetComponent(AIpathCellScript).doors)*

Presumably your “cells” array is done with the JS Array class, or possibly an ArrayList. It will make things faster and easier if you ditch the Array class (and ArrayList) and always use built-in arrays or generic Lists instead.

You should use built in arrays instead of the Array class if you don’t need to resize them in realtime. And in that case you can use Generic lists. So use this;

var doorsToCells : GameObject[];
var imediateCells : GameObject[];