Well, that looks all correct - I have no idea why the function would be crashing…
The code gets a list of directories in the platforms dir, loops over them, splits the names on the dash, and converts what’s after the dash to a number. The error is saying that what I’m trying to convert is not a number.
Have you ever been able to build for Android?