Liluo link and apk problem

I’m not sure which version because I haven’t exported the APK to android for many months until recently. I didn’t have this problem before. I tried to export an example and it works every time I open the APK from my cell phone, so it is not supposed to be a problem with the cell phone or android version. I test it from a Moto g31 with android 11. When I open the developer tools I get these errors, but I don’t think they really affect.
DevTools failed to load source map: Could not parse content for file:///C:/Users/Usuario/AppData/Local/Programs/GDevelop/resources/app.asar/www/pixi-tilemap.umd.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///C:/Users/Usuario/AppData/Local/Programs/GDevelop/resources/app.asar/www/TileMapHelper.js.map: Unexpected end of JSON input

Thanks for the useful information.
It would seem the issue is with the tilemap feature. Usually, messages in yellow are not important, and red ones matter, but I’m not sure how this rule applies to the tilemap feature.
If you are indeed using the tilemap feature in your game, try exporting one of the tilemap example projects, see if you get the same issue.

I don’t use tilemap in my project. Anyway, I exported one of the examples that included tilemap as an APK for Android but it worked fine every time I opened it on mobile. There is one more warning that appears in the developer tools.


There is no other message or warning than these two.

Thanks for trying the tilemap example.
I don’t think that error is relevant. I see it in mine as well, now that I looked for it.
You’re using the dev tools in the main GDevelop window? If so, do you get any interesting errors from the preview window itself, when previewing your own project?

Also, did you get a chance to try your own project in other phones?

I don’t see any other error or warning messages in the developer tools console when I open the game from the Gdevelop window and preview, not even when opening developer tools in the preview window itself.

1 Like

Sorry for not answering this line. I was testing on a higher power cell phone and the same thing happens to me that sometimes the screen with the Cordoba logo is not redirected to the loading screen and other times it comes out and goes to the screen with the loading bar. The difference is that even if you don’t go to the screen with the loading bar, when you reach the same loading time, you enter the game. Therefore, the game always works in the case of a phone with higher RAM and better processor, even if there is no redirection to the loading screen.

Good to know, thanks!
So, if the issue doesn’t occur with the example project you tried, we’ll assume it is specific to your project.

Before proceeding, make a backup of your project. Right-click on the folder and zip it, for instance, or copy-paste the whole folder.
Now, if you can share your project folder, it will be easier for us to investigate. Otherwise, let’s proceed:
First, you should check some tabs in the first Game settings menu:
Properties - Avoid leaving fields blank
Icons - Add all icons/thumbnails
Resources - No line is yellow/orange/red

Second, if you use extensions, please list them.

Third, after making sure you have a backup of your project, delete all the scenes and external layouts/events except the first scene, make sure the project is still functional and try exporting again. If that fails, restore a backup, delete the first scene, make sure the project is still functional and export again.

I tried to do it with the scenes that I have in the game. I’ve filled in the empty property slots (Liluo’s icon and splash screen which don’t make a difference), removed external events, external layout, effects, and lighting layer. I don’t use extensions.
None of the exports worked correctly every time. The error persists.
Perhaps someone who has the same problem can provide some more information.

I had the Application Error warning too (on several devices). I assumed it was because I was loading variables from a file and hadn’t put in checks to see if they actually exist first. (I’d updated high scores and game difficulties so these variables didn’t exist initially).

Hi, I am having the same problem “Application Error the connection to the server was unsuccessful”.

when I open the game on some Android devices, the Cordova loading screen will appear and then the Error warning shows up not allowing the user to access the game.

I think the problem started for me in version 5.0.140 which introduced the initial Cordova loading screen.

My game is very heavy around 100 mb so I think it has something to do with the ram of the devices that throws this warning. I think is important to mention that before version 5.0.140 the same 100mb game was able to run fine on the same devices that now show the error.

I export the game as Android App Bundle and upload it to the Playstore.
If it is of some use, the same game exported to IOS works fine on any device.

Do you still have this error?

I don’t have variables that are read from a file, at least I don’t think so. I only use common object and scene variables so far.

Has anyone tried to export the game as an APK to Android in a version lower than 5.0.140 of Gdevelop? I just tried version 5.0.139 but I don’t know if I downloaded the executable wrong, because the Cordoba logo keeps appearing and the game never works.

EDIT: The latest exports are not working anytime I open the APK from Android (it used to work sometimes).

I’m not sure which version because I haven’t exported the APK to android for many months until recently. I didn’t have this problem before. I tried to export an example and it works every time I open the APK from my cell phone, so it is not supposed to be a problem with the cell phone or android version. I test it from a Moto g31 with android 11. When I open the developer tools I get these errors, but I don’t think they really affect.. .

:wave:
I have submitted the issue to the devs, and I am waiting for feedback.
Please keep trying things on your side. The more info we get, the easier is the troubleshooting.

I just tried version 5.0.139 but I don’t know if I downloaded the executable wrong, because the Cordoba logo keeps appearing and the game never works.

Did you uninstall GDevelop and the game before installing v139 and the new export?
This is the setup link for v139 (Windows)..

Please Please Please tell developers to fix this connection error, it started from previous update and now it have same error if i use older versions too,

Yes, that’s the file I downloaded from 4ian’s GitHub and before installing it, I uninstalled the previous version. I will keep trying to figure it out or at least understand more about this error. I was seeing that progressively as I was developing the project and doing exports, they were working less times until this point that they no longer work on the cell phone that I had been testing. It never leaves the Cordoba icon (the loading bar never appears). On a more powerful cell phone it does not redirect to the loading screen either, but nevertheless, after the loading time, the game works. I guess there must be some errors that a more powerful phone can handle.

Same here. Latest version of GDevelop.

Fresh install message appeared then exited. Subsequent load ran fine. Odd.

Hi there!
Here’s a potential fix for that issue, if some of you are still experiencing it:

Let us know if that works for you as well. :slight_smile:

Thanks for looking for a solution. I don’t understand what I should do and where to place that fragment. Is this included in the latest updates or do I have to do it manually? because I made a new export for android as APK but the same thing happens as before (I did not do manual modifications). Also, I have never done a build manually.

1 Like

You have to export it as manual as cordova project. Then you need some software installations, cordova java and node js if I remember correctly. So then you have to run cmd on windows, then type (for example if you export your cordova project on the desktop) cd desktop (tap enter) then: cd (project folder name) and again enter. Then type: cordova platform add android. Then when it’s completed. Open folder and you will find file named: config.xml and down somewhere type same line which is showed above in the image. Then again in cmd. Type same commands to set project folder and type cordova build android and when it’s completed it shows you where is exported apk file. Sorry for my english, i hope it will help you.

Thanks for the information. I will have to download the programs and try. It’s a bit complicated for me because I’ve never done it. Is there any difference in terms of game performance when generating the APK in this way compared to the default in Gdevelop?