![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | dumdum123 |
Good day, so I exported a simple project in Godot 4 cause I plan to make games in android. Now, after I installed the apk and opened it, it showed the Godot icon/splash then it exits the app. I tried creating a new project that only have Node2d and a Sprite but the result is also the same. I tried searching for answers and tried adb logcat while Remote Debugging. Here’s what it says:
--------- beginning of crash
--------- beginning of system
--------- beginning of main
06-22 18:56:45.176 6518 6574 I godot : Godot Engine v4.0.3.stable.official.5222a99f5 - https://godotengine.org
06-22 18:56:45.267 6518 6574 I godot : vkEnumerateInstanceVersion not available, assuming Vulkan 1.0.
06-22 18:56:45.275 6518 6574 E godot : USER ERROR: vkEnumeratePhysicalDevices reported zero accessible devices.
06-22 18:56:45.275 6518 6574 E godot :
06-22 18:56:45.275 6518 6574 E godot : Do you have a compatible Vulkan installable client driver (ICD) installed?
06-22 18:56:45.275 6518 6574 E godot : vkEnumeratePhysicalDevices Failure
06-22 18:56:45.275 6518 6574 E godot : at: _create_physical_device (drivers/vulkan/vulkan_context.cpp:1144)
06-22 18:56:45.276 6518 6574 E godot : USER ERROR: Condition “err != OK” is true. Returning: ERR_CANT_CREATE
06-22 18:56:45.276 6518 6574 E godot : at: _window_create (drivers/vulkan/vulkan_context.cpp:1681)
06-22 18:56:45.276 6518 6574 E godot : USER ERROR: Failed to create Vulkan window.
06-22 18:56:45.276 6518 6574 E godot : at: DisplayServerAndroid (platform/android/display_server_android.cpp:561)
It seems to have something to do with Vulkan(don’t know what that is). Also tried searching for a solution but there’s too little discussion regarding this.
Edit: For people with the same problem. So far, the solutions that I found is when I change Stretch mode from canvas_items to viewport and when I use ‘Compatible/Compatibility’ mode.
You probably want to use ‘Compatible’ mode for your project (or ‘Forward Mobile’, although unlikely here; the error states Vulkan - itself a graphics API - isn’t supported).
spaceyjase | 2023-06-22 13:53
THANK YOUUUU SOOOO MUCHHHHHHHHHHHHHHHHH. I’m metaphorically crying right now huhuhu. I’ve been searching for the solution for 2 days and It only worked at this frigging moment. I did try Compatible mode a few hours ago so I guess it is not the whole problem but when I saw your comment, I tried it again and still failed. Then I thought, maybe something went wrong along the way because I kept tweaking the settings. So I created a new project again, didn’t touch much settings, set the mode to Compatible, then BAM, it worked in Remote Debugging. I only hope, this also works in .apk but I’m still glad I’ve taken another step in this project. Thank you again.
dumdum123 | 2023-06-22 15:02