The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

–1 vote

I export my game,and instal,but game exits immediately,what is the problem??
Its Android game

in Engine by (18 points)

It could be anything really: Faulty android permissions, missing objects and/or scenes, bugs in your code, broken extrenal libraries or dependencies. Can you run the game on your phone while it is connected to your pc via usb so that you can debug it? Another way to troubleshoot would be to export a simpler version of your game and see if that runs. If it does, keep adding back all the features one by one until it no longer works. That is how you'll know what the culprit is.

I dont have errors in my code,when i start my game in Godot it works perfectly...

Idk what to do to see where is the problem,i connect ny phone with PC (with USB) and i cant run game again...
Game in godot have 31mb but when i export in apk i have 19mb (myb that can help you)

can you run an empty scene? or a scene with just a cube? Some of your materials may be failing to load. Try and empty scene. If this doesn't work either, then maybe it is a permissions issue. You check what permissions you want your game to have via the ettings panel.

Also, try updating Android drivers/apis and what-not.

If your android device is connected via usb then you can use "adb logcat" to view all android log output. adb can also filter the output so you only see godot related messages. And it might be useful to redirect the output to a textfile and review the contents after the fail.

If you develop on windows then keep in mind that windows is much more forgiving when you mix up the case in file names. Godot Windows will load "Player.scn" when the file is actually named "player.scn". Android, linux and MacOS won't.

Avoid also using special chars (like umlauts or other accented characters) in your resource files. I have read that these sometimes fail to make it correctly into the apk.

Idk how to do that,if you can explain step by step,how to do that,i dont understand.
You can sent me on mail ([email protected])

Adb is already used by godot to connect to your android device when you debug it. So no need to install it.

Here's the basic information:

But don't panic!
Just try it out. If your android device is connected via usb then open a command line and run "adb logcat". You should see log entries of the android device.

You can also use "adb logcat > somefilename.txt" to save the log to a file. Stop logging immediately after your app failed by pressing Ctrl+C. Then inspect the log file near the end and search for godot related messages.

When you say open command line,what you think(how to do that)

In windows this is "cmd.exe" on linux (gui) and macos it is usually called "terminal window".

I open command line,when i type adb logcat i got ('adb' is not recognized as an internal or external command,operable program or batch file

The path to adb.exe should be defined in the godot editor settings (Export -> Android -> Adb). You can look it up there.

You could also do a file find for adb.exe.

If you use windows then type cd ". Then copy and paste the path from that setting (the part before adb.exe), then add some " after that and press enter.

If you chose the standard installation path (on windows) then you probably also can write:
cd "%USERPROFILE%\AppData\Local\Android\sdk\platform-tools"

If you typed everything correctly you should now have changed to the adb.exe directory.

Some info about adb:

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.