How can I import .pck file to my Android project?

Hi there,

I have been developing Android project with Godot 4.5.1.stable version, and Now I updated to Godot 4.6.stable.

I exported Godot project as .pck file and imported it in Android project under asset folder, it worked well in Godot 4.5.1.
But after upgrading to 4.6 (both editor and Android lib version), it is not possible to launch with this error.

”ERROR: --main-pack was specified on the command line, but this Godot binary was compiled without support for path overrides. Aborting.
To be able to use it, use the disable_path_overrides=no SCons option when compiling Godot.”

Are there any solutions ? Kindly let me know how to solve this issue.
Thanks a lot

2 Likes

I usually go with apk … try that’.. it’s works simply..

The main-pack option is disabed by default in 4.6. Rename your pck to data.pck and put it under assets dir. Godot will find it. If you do need a custom named pck, build a custom export template.