Android export cannot save or load files

Godot Version

v4.2.1.stable.official [b09f793f5]

Question

I have a program that saves or loads files for use on the next run. It works well in Windows, but no file is saved in the Android output. I checked the permissions of the app and tried again, on the first run of the app I approved the permission to access the files but it still doesn’t work. Should I use a special method to save and load files or save files in a specific path? (I use set_var and store_var)

Which specific path? On mobile you’ll only be able to read/write to the user:// path File paths in Godot projects — Godot Engine (stable) documentation in English

Oh, I used res:// to optimize the Windows version. That’s probably the problem, I’ll try, thank you.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.