Developing for Android
I'm a newbie that's playing around with HaxeFlixel and Android. I was able to compile Flappybalt to android and install it on my phone, but the app just crashes on startup. I have the latest HAXEFlixel packages installed
My android phone is currently running version 6.0
Do you guys know any details or tricks when using the Android targets?
Try compiling to neko, see if that crashes as well. It's much easier to debug desktop targets than it is mobile, and is really helpful when it's not a platform-specific issue.
Thanks, will try that!
Flappybalt compiled to Neko and Flash works flawlessly.. the problem is really Android targets
Not for flixel 4 but this works for me.
I had a problem with an Android app not working on v 6.0, but it worked on < 6.0 versions. It turned out to be the Android NDK version. Updating the NDK from r8b to r9d fixed the problem for me.
openfl setup androidinstalls r8b, so you need to manually install r9d.
After you extract it, you need to set the path. Run
openfl setup androidbut answer
n(4 times) when asked if you want to install. When asked
Path to Android NDK, enter the path to where you extracted it. Accept the already specified paths for the others (SDK, Ant and java).