Have you found the cause of this problem. I had the same error with my unity project and it solved itself, probably because I just rebuilt it twice. I wasn't doingdid not do anything with the code. I just rebuild twice. I don't know if building the project was one of the reason why the error go away.
I'm still looking forward to better solutions.