#Json not working with Androir APK
1 messages · Page 1 of 1 (latest)
did you add it to your exported resources
I dont know, I dont think so
is it on android studio ?
this is in the godot export menu
I found it but I broke some other stuff since LMAO (fucking hate my life 😭 🙏 )
First step should be learnkng version control then 🤣
HAHAHAHA you can make fun of me OOORRR : you could help me
What do u mean its a good tip 🤣
I do use git, some people in my class had issues because they had an other version of java installed on them computer because of minecraft. I tried to uninstall all version of java, reinstall java, now it won't work
if you are going to be a meany, dont answer please
What version did you install?
https://docs.godotengine.org/en/stable/tutorials/export/exporting_for_android.html
did you follow the official docs? What error are u stuck on?
Exporting for Android has fewer requirements than compiling Godot for Android. The following steps detail what is needed to set up the Android SDK and the engine. Install OpenJDK 17: Download and i...
of java : jdk-25_windows-x64
of android sutdio : panda 3
thanks for trying to help, I appreciate that
yeah I know, I am french
my teacher asked us to do it a certain way
(similaire in some ways of the godot docs)
this means that the signature, like security code for your current project isn't the same as your current export, this probaly has to do with reinstalling the versions.
You could prob just delete the current signature with ps command: adb uninstall com.isartdigital.overlapping
This will remove all the settings, and potential save games on the version that is already on ur phone though.
Deleting this makes sure godot can just cleanly create a new export instead of upgrading the exsisting one.
Ofcourse, if you still have the correct signature you can just update this in your project settings.
It worked ! Thanks !!
Now, I am back to the "my apk can't read my json for some reason" 😭
But it's a step, thank you :)
I tryed to add " *.json " in the export ressources as @worthy dirge mentionned but it still don't work... :(
is the json in the project folder and not somewhere else on ur pc ?
It's in the project folder. For now, I only need to read it, so it's in a JSON file in the res://
ok, it's because my json were in a folder called "JSON" instead of "data"
AND : my game still doesnt work 🥲
it does work if you make a desktop export right? Any errors in the log file? Not sure where that file is saved on android tho
it's weird how this would make any difference tbh, that is if you atleast select the right options in the export resources
No errors, works like a charm on my computer (windows 11)
Well, you know what they say : fuck computer science
no errors on pc or phone?
no errors on my PC
I use this to try on my phone and I don't know where to look to see logs
ah if it's remote deployed it should go to the console
I don't have any errors in my console
how are you reading the file
is that still the problem though, that the game isn't reading the json files?
Uh not sure how to get the open error from FileAccess in c# but there should be a way. Try printing that one instead to see what caused the null
I can read the json on my phone now !
My game still doesn't work