title: How to generate RenderScript ScriptC* files with Android.bp?
body: <p>I want to compile my renderscript project with a <code>.rs</code> file on AOSP.</p>
  <p>My AOSP SDK is 29 (Android Q).</p>
  <p>My build directory for <code>mm</code> is</p>
  <pre><code>├── Android.bp
  ├── AndroidManifest.xml
  ├── java
  ├── lib
  ├── lib64
  ├── libs
  ├── res
  └── rs
      └── histEq.rs
  </code></pre>
  <p>I have followed <a href="https://stackoverflow.com/questions/20010822/how-to-generate-renderscript-scriptc-files-with-android-mk">How to generate RenderScript ScriptC* files with Android.mk?</a> and tried this corresponding change:</p>
  <pre><code>android_app {
      name: &quot;MyAndroidApp&quot;,
      manifest: &quot;AndroidManifest.xml&quot;,
      srcs: [
          &quot;java/**/*.java&quot;,
          &quot;rs/histEq.rs&quot;,
      ],
  </code></pre>
  <p>However, I am still getting this build error.</p>
  <pre><code>&lt;path to code&gt;/utils/RenderScriptImageEdit.java:11: error: cannot find symbol
  import &lt;package name&gt;.ScriptC_histEq;
                              ^
    symbol:   class ScriptC_histEq
    location: package &lt;package name&gt;
  &lt;path to code&gt;/utils/RenderScriptImageEdit.java:43: error: cannot find symbol
          ScriptC_histEq histEqScript = new ScriptC_histEq(rs);
          ^
    symbol:   class ScriptC_histEq
    location: class RenderScriptImageEdit
  &lt;path to code&gt;/utils/RenderScriptImageEdit.java:43: error: cannot find symbol
          ScriptC_histEq histEqScript = new ScriptC_histEq(rs);
                                            ^
    symbol:   class ScriptC_histEq
    location: class RenderScriptImageEdit
  
  </code></pre>
  <p>Renaming <code>.rs</code> to <code>.rscript</code> also did not work.</p>
  <p>How to compile <code>.rs</code> files on AOSP 29 with <code>Android.bp</code>?</p>