title: "Failed to get the compiler information for file ..." in Android Studio
body: <p>I'm running into this really bizarre error message in Android Studio. It shows up on top of my <em>native</em> code built using <code>ndk-build</code> through Gradle. The breakpoints and code stepping are working properly, but the code is absolutely littered with "errors" like "Can't resolve variable".</p>
  
  <p>Here's an example of what it looks like:</p>
  
  <p><a href="https://i.stack.imgur.com/7Fck3.png" rel="noreferrer"><img src="https://i.stack.imgur.com/7Fck3.png" alt="enter image description here"></a></p>
  
  <p>Again, the code all runs correctly, it's just like the IDE doesn't seem to be able to resolve a whole bunch of the types. You can see the litany of errors on the right hand side. Basically every line is marked as an error even though it all compiles just fine. No idea what's going on!</p>