|Attention||Topic was automatically imported from the old Question2Answer platform.|
I export my game,and instal,but game exits immediately,what is the problem??
Its Android game
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.
johnygames | 2020-02-27 21:59
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)
marko-prog | 2020-02-27 22:10
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.
johnygames | 2020-02-28 01:02
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.
wombatstampede | 2020-02-28 09:14
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@example.com)
marko-prog | 2020-02-28 09:41
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:
Logcat command-line tool | Android Studio | Android Developers
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.
wombatstampede | 2020-02-28 10:04
When you say open command line,what you think(how to do that)
marko-prog | 2020-02-28 16:35
In windows this is “cmd.exe” on linux (gui) and macos it is usually called “terminal window”.
wombatstampede | 2020-02-29 10:26
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
marko-prog | 2020-02-29 15:40
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:
If you typed everything correctly you should now have changed to the adb.exe directory.
wombatstampede | 2020-02-29 16:19