title: Android Studio inline compiler showing red errors, but compilation with gradle works fine
body: <p>I've set up my project in Android Studio to use the <a href="http://corner.squareup.com/2013/08/introducing-wire.html" rel="noreferrer">Square Wire library</a>, as per <a href="https://stackoverflow.com/q/20130471/112705">this question</a>.</p>
  
  <p><code>Build</code> -> <code>Compile Project</code> works fine.</p>
  
  <pre><code>2:03:10 PM Compilation completed successfully in 31 sec
  </code></pre>
  
  <p>However, if I open one of my generated Protocol Buffer files, then the Square package is not being recognized.  </p>
  
  <p><img src="https://i.stack.imgur.com/JMky1.png" alt="Android Studio inline compile errors"></p>
  
  <p>Another symptom is that methods inherited from the Square <code>Message</code> class are showing as "Cannot resolve method" compile errors in the editor, even though they build and run fine. </p>
  
  <p><img src="https://i.stack.imgur.com/bJqBr.png" alt="Android Studio single line compile error"></p>
  
  <p>Do I need to do something more than just adding the dependency in <code>build.gradle</code> for my module in my project?</p>