title: Android Studio spurious "Cannot resolve corresponding JNI function"
body: <p>Android Studio is showing this error. Here's a snippet of the relevant code:</p>
  <pre><code>public class MainActivity extends AppCompatActivity {
  
      ...
  
      static native void runTests(String path);
  
      static {
          System.loadLibrary(&quot;TestLib&quot;);
      }
  }
  </code></pre>
  <p>In that first line, <strong>runTests</strong> is highlit in red and if you hover over it, you see the message &quot;Cannot resolve corresponding JNI function&quot;</p>
  <p>To be clear, the app <em>does</em> build and run just fine. It's just that Android Studio thinks that this symbol can't be resolved.</p>