I\'ve set up my project in Android Studio to use the Square Wire library, as per this question.
Build -> Compile Project works fine.
Simple Solution
Go through the link and it worked for me.
File option from menu on left top side of android studio.Invalidate Cache/Restart It will open an dialog.Invalidate and RestartIt resolved my problem
Go to File > Invalidate Cache/Restart > Invalidate and Restart
Source here for youtube