APK Closes After Loading Screen

Get help using Construct 3!

Post » Thu May 17, 2018 8:47 pm

Exported as Debug APK. Downloaded, installed just fine. Open the app and the black screen with loading bar comes up. When its done loading it closes the app, and brings me back to my phones file manager (which I assume it goes there because thats the last page I was one before I opened the app).

Any ideas why?

App is 166 MB Compressed
App is 208 Uncompressed
No Minify Script Used
Framework: Cordova
Events: 347

I do have a lot of sprites in the app, but not a huge amount are loading on the main page...Ive been apple to open apps from Construct that had way way more sprites/animations before.

Things I have tried:
Disabling every line of code in the game (didnt work, still closes after loading screen)
Deleted a huge chunk of image files and re-exported with all code disabled. (didnt work, still closes after loading screen)
Last edited by jmiller4180 on Fri May 18, 2018 11:28 pm, edited 3 times in total.
B
10
S
4
Posts: 74
Reputation: 981

Post » Thu May 17, 2018 9:09 pm

please, provide more details such as

- Build framework using ? <cordova cli, cocoon or phonegap or etc>
- Code event usage? <effect particles, loop, or mismatch condition/action>
Image Image
B
30
S
11
G
223
Posts: 23
Reputation: 113,343

Post » Thu May 17, 2018 9:22 pm

It is Cordova and just used the APK construct gave me, no cocoon or phonegap or anything.

but am not sure what the second part you are asking about. There is a minor particle effect for a blood squirt that lasts a couple of seconds and then destroys, collisions for bullets hitting sprites when sprites shoot, bullets destroy when collision. No physics used at all. Its in essence a tower defense game.

I would upload the project, but there is a lot of money into this game assets wise that I do not feel comfortable just handing out :(
B
10
S
4
Posts: 74
Reputation: 981

Post » Thu May 17, 2018 9:35 pm

try to compress the image size with tools such as tinypng or compresspng so that the APK is not heavy while loading.

maybe, you can share the contents of config.xml
Image Image
B
30
S
11
G
223
Posts: 23
Reputation: 113,343

Post » Thu May 17, 2018 9:46 pm

Trying to use cocoon to see if its better after compiling it there, but I keep getting compile errors like the following.

CORDOVA LOG:

[2018-05-17 21:39:10.386] [DEBUG] AndroidBuilder - [prepare] cordova restore platforms
[2018-05-17 21:39:10.400] [DEBUG] AndroidBuilder - [prepare] adding engine [email protected]
Subproject Path: CordovaLib
Subproject Path: CordovaLib
Subproject Path: CordovaLib
[2018-05-17 21:39:21.705] [DEBUG] AndroidBuilder - undefined
B
10
S
4
Posts: 74
Reputation: 981

Post » Thu May 17, 2018 10:28 pm

Yeah I can't get this sorted. What a bummer.
B
10
S
4
Posts: 74
Reputation: 981

Post » Thu May 17, 2018 11:40 pm

Is there like a log file somewhere? Maybe just knowing why it crashed would be helpful instead of just guessing. This game isn't that big...doesnt use much of anything demanding.

Also side note, it wont export for Windows it gives error there as well. Never had issues with Construct 2, should have never switched :/
B
10
S
4
Posts: 74
Reputation: 981

Post » Fri May 18, 2018 4:37 pm

I have also tried removing most animations from loading on the screen, then exporting/compiling a Debug APK, but it still does it. I went through the code and its nothing special, no crazy loops or anything.

Anyone have any other ideas? I am really struggling.
B
10
S
4
Posts: 74
Reputation: 981

Post » Fri May 18, 2018 8:02 pm

place your exported file into drive and share the link at here, it will help guest to reply your post.
Image Image
B
30
S
11
G
223
Posts: 23
Reputation: 113,343

Post » Fri May 18, 2018 8:07 pm

The exported APK?

Also note. I exported it for Android Studio. Debug/Ran it in there, it did the same thing and gave an audio error of sorts. So I removed the single sound file I had in there. Exported and ran again. No audio error this time, and no other errors. It just disconnects/closes the app without any errors at all. Will still load almost all the way, and then just closes.
B
10
S
4
Posts: 74
Reputation: 981

Next

Return to How do I...?

Who is online

Users browsing this forum: No registered users and 3 guests