Is it possible to port Flashdevelop project from Openfl to Android?

138 Views Asked by At

I made a neko project for Windows using FlashDevelop. I want to see if I can port it for android without remaking code or too much of it. In the past I was able to port to hmtl5 without having to remake code. Of course making an APK is different and requires getting some packages installed, I know that. The question is can I build android or I have to start a new project (like AS3) and go on in its own way?

I setup the Path to Android SDK [C:\Programs\Android Development\platform-tools]: (contains adb, other files and the build-tools folder) Path to Android NDK [C:\Programs\Android Development\android-ndk-r20]: Path to Java JDK [C:\Programs\Android Development\jdk1.8.0_221]:

A simple project that displays an image. Errors I get when building 'android'

‘arm-linux-androideabi-g++’ is not recognized as an internal or external command, operable program or batch file. Error: Could not create PCH Build halted with errors.

Or in NativeCFFI.hx error: function body required @:cffi private static function lime_jni_create_method(className:String, method:String, signature:String, isStatic:Bool, quiet:Bool):Dynamic;

1

There are 1 best solutions below

2
Gama11 On

‘arm-linux-androideabi-g++’ is not recognized as an internal or external command, operable program or batch file. Error: Could not create PCH Build halted with errors.

That error comes from an Android NDK that is too recent. Current HXCPP releases only support versions up to r15c, so I suggest you downgrade to that version.

Alternatively, you could try installing HXCPP from GitHub, as support for newer NDKs was recently merged.