I'm using Processing 3.5.3 and Android SDK Platform 26

App crashes trying to list the Serial ports
import io.inventit.processing.android.serial.*;
void setup()
{
println(Serial.list(this));
}
void draw()
{
}
Also crashes if i try to open a port
serialPort = new Serial(this, Serial.list(this)[0], 9600);
Anyone knows how to fix this?
Thanks