I've set up my project in Android Studio to use the Square Wire library, as per this question.
Build
-> Compile Project
works fine.
2:03:10 PM Compilation completed successfully in 31 sec
However, if I open one of my generated Protocol Buffer files, then the Square package is not being recognized.
Another symptom is that methods inherited from the Square Message
class are showing as "Cannot resolve method" compile errors in the editor, even though they build and run fine.
Do I need to do something more than just adding the dependency in build.gradle
for my module in my project?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…