title: android cannot find corresponding jni function
body: <p>I've followed <a href="https://github.com/GerardSoleCa/Robosodium" rel="nofollow">here</a> and I've added the .so files to my android project. Loaded the library and the project runs. </p>
  
  <p>Now I want to use a function of the library. I tried like this in my <code>MainActivity</code>:</p>
  
  <pre><code>public final static native int crypto_aead_chacha20poly1305_encrypt(byte[] jarg1, int[] jarg2, byte[] jarg3, int jarg4, byte[] jarg5, int jarg6, byte[] jarg7, byte[] jarg8, byte[] jarg9);
  </code></pre>
  
  <p>Android gives me that he cannot find the corresponding JNI function.</p>
  
  <p>The so files are in jniLibs in the right architecture map. </p>
  
  <p>Has this something to do with my packagename that he tries to find it in my package instead of in the so library? </p>
  
  <p>When I run this I get:</p>
  
  <pre><code>java.lang.UnsatisfiedLinkError: No implementation found for int be.example.libtest.MainActivity.crypto_aead_chacha20poly1305_encrypt(byte[], int[], byte[], int, byte[], int, byte[], byte[], byte[]) (tried Java_be_example_libtest_MainActivity_crypto_1aead_1chacha20poly1305_1encrypt and Java_be_example_libtest_MainActivity_crypto_1aead_1chacha20poly1305_1encrypt___3B_3I_3BI_3BI_3B_3B_3B)
  </code></pre>