Cannot compile for Android

I am trying to build on Android with lime 3.7.4, openfl 4.8.1 and hxcpp 3.4.49
but it results in an error:

Called from ? line 1
Called from CommandLineTools.hx line 1683
Called from CommandLineTools.hx line 24
Called from CommandLineTools.hx line 131
Called from CommandLineTools.hx line 686
Called from lime/project/PlatformTarget.hx line 99
Called from lime/tools/platforms/AndroidPlatform.hx line 321
Called from /usr/lib/haxe/std/neko/_std/EReg.hx line 101
Uncaught exception - Invalid field access : length

I’ve also found topics on the matter, but I am not sure how I should fix it. Is there an Android build tutorial of sorts?

Based on AndroidPlatform.hx line 321, my guess is that ENV_ANDROID_NDK_ROOT is null.

Did you run openfl setup android yet?

Added a guard :slight_smile: