title: I get java.lang.UnsatisfiedLinkError when try to call a native function from my project configured with bazel
body: <p>I have created a cc_library in my bazel Build file and added the deps in android_binary rule</p>
  
  <p><strong>Bazel BUILD:</strong></p>
  
  <pre><code>cc_library(
      name = "native_libs",
      srcs = glob([
          "app/src/main/jni/**/*.cc",
          "app/src/main/jni/**/*.h",
      ]),
  
  )
     android_binary(
     name = "buildlib",
     srcs = glob([
          "app/src/main/java/**/*.java",
      ]),
     manifest = "app/src/main/AndroidManifest.xml",
     deps = ":native_libs",
  ) 
  </code></pre>
  
  <p>And loaded the library in the specified package as </p>
  
  <pre><code>static{
  System.loadLibrary("buildlib");}
  </code></pre>
  
  <p>And declares and calls the native function as :</p>
  
  <p><strong>Declaration:</strong></p>
  
  <pre><code>private static native String foo(String code);
  </code></pre>
  
  <p><strong>Function Call</strong></p>
  
  <pre><code>foo("Code");
  </code></pre>
  
  <p><strong>JNI FILE FUNCTION DECLARATION AND DEFINITION:</strong></p>
  
  <pre><code>    JNIEXPORT jstring JNICALL
      Java_com_example_android_(foo)( JNIEnv* env, jobject thiz, jstring code );
  
  JNIEXPORT jstring JNICALL
  Java_com_example_android_(foo)( JNIEnv* env, jobject thiz, jstring code )
  {
     //some code
      return code;
  }
  </code></pre>
  
  <p>The library gets loaded successfully but while function call throws an error of <code>java.lang.UnsatisfiedLinkError</code></p>
  
  <p>How can i called the native foo() from my java file?</p>