I'm trying to export my game on Android. Everything works except my app can't find/read a JSON file I use to store datas as a save file. On my pc (Windows) the file is called quiz.json and I manage it as const FILE = "user://quiz.json" Then I read it with a load function. It works on Windows, but when I try to export my project on android it seems that the file is not exported. I set Write User Directory,Write External Storage,even Read External Storage permission. I also added in Export>Resources>Filters for non-resource the field *.json but the file is not exported anyway. How can I export a file in android and read it?

a year later

I had such a problem with .txt files. Has anyone defeated this problem?

I have not tried it on Android, but there is an export option that tells Godot to include certain files in the export, like .json or .txt files. I mentioned it in this post. I think that fix the issue, since normally .json and .txt files are not included in the export, but adding it to the "non-resource files" list should force these files to be included in the .pck file.

@TwistedTwigleg said: I have not tried it on Android, but there is an export option that tells Godot to include certain files in the export, like .json or .txt files. I mentioned it in this post. I think that fix the issue, since normally .json and .txt files are not included in the export, but adding it to the "non-resource files" list should force these files to be included in the .pck file.

It is working!

3 years later