Finally!

I couldn't post the code, so I started writing a little sample app, and much to my surprise, the sample app. was working!

So I took a look back at my original code, and it had the same stuff in it! I was very confused.

SOLUTION: The clean function wasn't cleaning my build folder. I had to go and manually clean it. And by clean I mean DELETE EVERYTHING THAT EVER EXISTED THAT EVEN REMOTELY MESSED WITH ME OR MY BEAUTIFUL CODE. Now it builds. Without issues. Thanks for your help everyone. Sorry I'm such a tard!