I work in Intellij IDEA, but my computer freezes so I turn off my computer. (long click power button) When I turned on computer and start IntelliJ IDEA I had this error:
In my case nothing of these worked.
But the final solution was very easy:
rm -r ~/Library/Preferences/AndroidStudio[X.X]/codestyles/