title: AOSP building application with jni libs
body: <p>I am trying to build an Android application inside of AOSP.</p>
  <p>I have defined the <code>Android.bp</code> file as follows</p>
  <pre><code>cc_prebuilt_library_shared {
      name: &quot;libPrintString&quot;,
      target: {
          android_arm: {
              srcs: [&quot;lib/libPrintString.so&quot;],
          },
          android_arm64: {
              srcs: [&quot;lib64/libPrintString.so&quot;],
          },
      },
      strip: { none:true, },
  }
  
  java_import {
      name: &quot;stringutils&quot;,
      jars: [&quot;libs/stringutils.jar&quot;],
  }
  
  android_app {
      name: &quot;HelloWorld&quot;,
      srcs: [&quot;src/**/*.java&quot;,],
      platform_apis: true,
      product_specific: true,
      certificate: &quot;platform&quot;,
      privileged: true,
      static_libs: [
          &quot;com.google.android.material_material&quot;,
          &quot;androidx-constraintlayout_constraintlayout&quot;,
          &quot;stringutils&quot;,
      ],
      jni_libs: [&quot;libPrintString&quot;]
  }
  
  </code></pre>
  <p>I have put my application in the <code>/packages/apps</code> folder, the project has the following structure</p>
  <pre><code>+ HelloWorld
    - Android.bp
    - AndroidManifest.xml
    + lib
      - libPrintString.so
    + lib64
      - libPrintString.so
    + libs
      - stringutils.jar
    + res
    + src
  </code></pre>
  <p>When I am calling make I am getting an error</p>
  <pre><code>FAILED: ninja: 'out/target/product/mydroid/product/lib64/libPrintString.so', needed by 'out/target/product/mydroid/product.img', missing and no known rule to make it
  </code></pre>
  <p>Can someone please help me to find a solution?</p>