I\'ve set up my project in Android Studio to use the Square Wire library, as per this question.
Build -> Compile Project works fine.
All the answers above didn't work for me. My problem was that i had 3 modules, with 2 of them with the same package name.
It was ok for android studio <= 3.2.1.
For android studio > 3.2.1, ressouce was red.
I solved it like this mention here (i just made differents packages name for each modules ) : Any android Studio version > 3.2.1 show red resource but still compile