Unity is building older version of my game

I am making an android game, but whenever I try to build my game, Unity builds my game using the older scripts.Any changes in scene mode, liking adding gameobjects and other things are showing up in the build, just the scripts are not working fine.

So far I have tried doing this

  • Change my build directory
  • Change my build name
  • Delete cache files, Library and Obj folders
  • Reimport everything
  • Delete and add scene again

Plus, there is no error in console when I build my game.

Help please !

Hi, I have tried everything but the issue persists. Any leads?

Same issue.

I had the same problem, and I spent hours reimporting, and trying to figure out what happened only to find the solution was so simple I didn’t think of it. So frustrating, as I had a slight error in my build that I couldn’t check if I had fixed.

On player settings, there’s a version number that was set to v0.1. I changed it to 0.2 and put it in a different folder. Seems to have solved it. If that doesn’t work, try changing the target platform, and cancelling as soon as you see the cancel button. That may reset something. Don’t know whether the had any effect, I was trying it when I noticed the version number.