Since upgrading to OpenFL 2.2.4 and Lime 2.0.6, Android apps produce a black screen and then crash.
Building works fine, as does installation, it’s only when I run the app that it crashes. I’ve tried on a few different devices, and upgraded my Android SDK. I tried PiratePig as well as a few of my own projects, same behaviour on all.
Setting OpenFL back to 2.2.3 and Lime back to 2.0.5 solves the problem.
Are other people experiencing this? Any solutions besides reverting to the old version?
If you installed 2.0.6 immediately, you may have gotten a bad build (wasn’t cleaned properly on the build server before the release). You could try haxelib remove lime 2.0.6 && haxelib install lime 2.0.6 to make sure you have the fixed build
There were no errors, what happened is that no text is displayed. It works if lime is set to version 2.0.0-alpha.
There seems to be some weird stuff with the font embedding in flixel on android. It had to do with font names in the FlxAssets.hx file. On android it expects the asset file path, but on other platforms it wants the font name.
to the init function in FlxAssets.hx. I don’t know if it’s a good solution, but it works. Should i do a pull request or something? I’m new to this stuff.
@jefvel If this works for you, I’m interested in what font name values you get for these fonts on Android. The “AddingText” sample works on Android as well as the desktop, using font names, I’m not sure what’s different about this
Based on my own tests, Assets.getFont("assets/fonts/arial.ttf").fontName will return “Arial” in Flash and “assets/fonts/arial.ttf” on all other targets.
I’m having trouble setting the format of specific words; in Flash it works, but it doesn’t work anywhere else. That’s an entirely different issue, though.