I keep getting Error detecting project version

I have been getting “Error detecting project version” error and I haven’t been able to figure this out for 2 hours!

Following the link above, I learned that changing the schema version in json file to 3.2 from 4.0. However, when I publish my project and create a nupkg file, the json file automatically changes the schema version back to 4.0. Now, when I try to run the robot, I get “Error detecting project version”.

It is so annoying and I don’t know what I am doing wrong. I don’t even understand why I am getting this error. Can someone please help me?
For your information, I need to run this program from the robot, not from studio. And this error is happening from the robot.

Try deleting the json file, opening in studio then resaving the main file and publishing it.