Black screen after exporting to Android

I will be straightforward.

  • Finished my game.
  • Chose Cordova export and made package.
  • Went to package’s folder with CMD and ran:
cordova add platform android@^7.0.0
cordova build android
  • Compiled package into APK successfully.
  • Put apk into phone and then installed.
  • Opened application.
  • Black screen.

This only happens with GDevelop. I tried using Construct 2 and did the same process (made a game, exported it with Cordova, bla bla bla) and guess what: no black screen. This made me think that GDevelop is (perhaps) having some issues when building the Cordova package. So, how do I fix this problem?. I tried to read every other solution outside and inside the forum, but nothing worked.

If I do not seem to solve this, then I guess I will use Construct 2 as Android exporter. This Cordova package non-sense is getting me a little :pinching_hand: frustrated. I will apprecite some help here. Thank you.

By the way, I have no programming backgroud. :eyes:

theres ia way to export to android without doing that, all you need to do in go in export then click on the mobile thing then export(well and have apk or the another one for android on)

1 Like

You mean this one?

Yeah, I knew that, but you have to pay for it and that pushes me away from using that option. I mean, I know the fees are cheap, but I do not have any Euros and I do not feel I want to pay for that. :sweat_smile:

I rather using Construct 2 instead. I hope GDevelop at least can export to Windows without issues. But hey, thanks for the replay anyways. I hope you have a nice day.

u don’t have to pay for it, yes theres only 2(or what ever the number is i forget, and well do you gain back the export after 24 hours), also don’t you need pay for construct

@darkshadow is right. You don’t have to pay for that. You can use GDevelop without paying a penny (although there is splash screen, that can also be removed without paying anything, by being hacky). That option does limit your export per day. You get 2 builds per day. If you used all 2 builds, just wait for a day (24 hours maybe) and you will get to build again.

1 Like

If I’m reading the above correctly, are you trying to export to an android 7.0 device/OS?

Android 7 is pretty ancient at this point (less than 8% of devices on the market are android 7 anymore), and there is a very good chance the device may not support what is needed for GD5s webGL renderer nor its canvas renderer backup.

C2 is likewise ancient and doesn’t have the same rendering capabilities (nor requirements) of GD5, so it really isn’t a good comparison.

I would actually recommend testing using the network preview option to see if it works on your phone. No need to export and compile to test with that. Previewing your game [GDevelop wiki]

If that works, do a test export using the external online build service. While rate limited without a subscription (2 builds, then you get another build 24 hours after your last build, etc), it is completely free, although it does require you to register (not subscribe) to use it.

2 Likes

Hjmm… I actually did not know I could get free builds after 24 hours… No, seriously, I did not know the engine was that gentle. Thank you so much for making me realise that. :sweat_smile:

And yes, I tried to export to Android 7, though my phone is actually Android 8, but I am guessing it is still old. Man, technology sure evolves fast.

1 Like

Android especially evolves super quick.

That said. Definitely try network preview first. Might make it faster to confirm/debug.