Black screen on android build



  • Hi, I'm trying to build my game to run on android and while the apk is created and the game runs, it only displays a black screen. I'm wondering if I have some wrong version of some library or something.

    Here's my haxelib list

    actuate: [1.8.7]
    box2d: [1.2.3]
    clearlibs: [1.0.6]
    flixel-addons: [2.1.0]
    flixel-tools: [1.1.3]
    flixel: 3.3.5 4.1.1 [4.2.0]
    haxelib_client: [3.2.0-rc.3]
    hscript: [2.0.7]
    hxcpp: [3.3.49]
    layout: [1.2.1]
    lime-samples: [2.6.0]
    lime: [2.9.1] 3.3.0
    openfl-samples: [4.0.0]
    openfl: [3.6.1] 4.0.3 4.3.1
    polygonal-ds: [1.4.1]
    polygonal-printf: [1.0.2-beta]
    swf: 2.2.3 [2.2.4]



  • Maybe try to build a demo first to see if the problem is your libraries or just your project.
    Or build your project in other targets if you haven't already to see if it still happens.



  • I tried with the demos and still having problems. Will have to investigate further. If anyone is able to do android exports and could send me their haxelib, I would be very happy :D



  • My haxelib list:

    extension-admob: [1.6.1]
    extension-googleplayservices-basement: [1.1.0]
    flixel-addons: [2.2.0]
    flixel-demos: [2.3.0]
    flixel-templates: [2.1.0]
    flixel-tools: [1.2.1]
    flixel-ui: [2.2.0]
    flixel: [4.2.0]
    google-play-services: [1.1.0]
    hscript: [2.0.7]
    hxcpp: [3.3.49]
    hxtelemetry: [0.3.4]
    lime-samples: [2.6.0]
    lime: [2.9.1]
    nape: [2.0.20]
    openfl-samples: [4.0.0]
    openfl: [3.6.1]
    svg: [1.1.1]
    

    Also,
    Android NDK r11
    Apache Ant 1.9.7
    Java JDK 1.8.0_101
    Android SDK 25.1.7 with

    • Android API 16
    • Android API 17
    • Android API 19
    • Android API 23
    • And in Project.xml:
    <android minimum-sdk-version="16" target-sdk-version="19" if="android" />
    


  • Even wit those, I'm getting these errors when trying to build the demos :

    BUILD FAILED
    C:\Development\Android SDK\tools\ant\build.xml:892: The following error occurred while executing this line:
    C:\Development\Android SDK\tools\ant\build.xml:894: The following error occurred while executing this line:
    C:\Development\Android SDK\tools\ant\build.xml:906: The following error occurred while executing this line:
    C:\Development\Android SDK\tools\ant\build.xml:283: null returned: 1


Log in to reply
 

Looks like your connection to HaxeFlixel was lost, please wait while we try to reconnect.