2015-08-10

I'm developing a tile-based game for mobile platforms, written in Haxe (with Openfl): it works like a charm when I try it for Html5 or a desktop target (Mac OS), but it crashes in its Android version.

I don't get errors, but I figured out the line which causes the problem (if I remove the code from that line, the application works):

I tried to change the file path trying with

But I just get errors about the non existence of the file, so the path is correct...as I wrote, I don't get errors, the app just crashes at the beginning.

UPDATE #1:
This is the log from adb logcat -c (the app is com.sample.pokemon):

Here my library versions:

I've tried with Openfl 3.1.4 (last version installed) but I get this error when I run sudo openfl test android:

So I've tried with Openfl 3.1.3 but I get another error:

(I didn't get any error with Openfl 3.1.1)

P.s.:
I tried using another image but it didn't solve the problem.
I checked that the images are correctly in the Export/android/bin/assets/assets/ folder.
The images I'm using are ~4KB 32x32 .png files.

UPDATE #2:

I get the same problem using a sample project (PiratePig).
I tried to use a Windows 7 computer with the Android emulator, too, but it didn't solve it.

I decided to report this problem to the OpenFl Community.

Show more