I\'ve set up my project in Android Studio to use the Square Wire library, as per this question.
Build -> Compile Project works fine.
Build
Compile Project
I got the same issue cleared using the following steps:
update the library version in gradle to any random number, eg: lib_1.0.0 -> lib_1.0.0.0
gradle sync
sync shows error
revert the version change lib_1.0.0.0 -> lib_1.0.0
Open the java file with imports to see the error cleared.