APK crashes when i open it

Godot Version

4.2.1

Question

Hi! So i tried to make a game for mobile, but when i start it up and press the play button, nothin happens. when i tried to set the actual level scene as the main scene, the screen is black and crashes after 10-30 seconds. i tried it on my galaxy z flip4. would be nice if help is available.( its been almost a month with no help)

need more info about what you making, did it crash also on pc editor? what the adb logcat said when it crashed? in what scene or button clicked it crashed?

No it didnt crash on pc editor. i dont know what you mean with "
what the adb logcat said when it crashed?", but as i said, it only crashes in the level scene. as i open it, its just black and crashes after some time.

Run you app with usb debugging on and then see what error occurred

Did you generate yout APK with the correct architecture?
image

where can i chose this?:sweat_smile: in the editor settings or where?

Project->Export

no, it still doesnt work. i tried every single one

do i need develop mode for this? could you send me a tutorial or smth?

https://www.youtube.com/results?search_query=godot+android+export

no, for the debug mode

This will cover almost everything related to debugging

1 Like

So i just realized something. is it normal that it says that?
image

so, trying remote debugging, a new problem happend. on my acc you can find it
:edit it doesnt crash anymore but only a black screen appears

So, i got the logcat to work, and i saw this error popping up very very often.can you help now

logcat said:

Aha!
I’ve experienced this problem, too
You could check the use of graddle build in project export and change the target sdk to 35

thanks, but a new error poped up.

Can you give it another try? This method is unstable, so after multiple attempts, it worked

i dont know after how many tries it should work, but i tried it like 10 times and it still doesnt work.