I\'ve set up my project in Android Studio to use the Square Wire library, as per this question.
Build
-> Compile Project
works fine.
None of the solutions worked for me..I resorted to uninstall java from my computer, running android studio to make sure it detected the uninstall and then installing it again.
If you choose to go this way try changing the jdk path and setting the new path in the project structure. If that doesn't work, go ahead and uninstall java.