avr-g++: bad CPU type in executable

I have the same problem it is because of the max beta i just installed beta 2 still same problem. I also tried the arduino 2 (beta) also not working. Is there currently any workaround ?