title: How to generate .so file and the corresponding Java interface in Android Studio
body: <p>I want to generate a SO file and its corresponding Java interface for using it into another project. </p>
  
  <p><strong>What I have done so far:</strong></p>
  
  <p>I have created a project in Android Studio 2.3.3 (the latest version of 2017-08-09) with 'Include C++ support' and wrote some C/C++ code and compile it and when I run the program it was successfully called and returned a "Hello from JNI" string.</p>
  
  <p>So after that, I looked the output for the generated <code>.so</code> file, but there I did not find this file. After that, I found the generated APK file in the output folder and when I <strong>extracted</strong> it, inside I found these folders which all contain <code>.so</code> file:</p>
  
  <ul>
  <li>arm64-v8a</li>
  <li>armeabi</li>
  <li>armeabi-v7a</li>
  <li>mips</li>
  <li>mips64</li>
  <li>x86</li>
  <li>x86_64</li>
  </ul>
  
  <p>Now the question is, how can I use these <code>.so</code> files into another project, because of this I searched a lot on the internet, but unfortunately, I did not find any solution, the solution that they mentioned all was to create a folder in the <code>main</code> folder of the project name it <code>jniLibs</code> and after modify the Gradle file and so ..., but no one was working.</p>
  
  <p>Here I want to know that how can we add the .so file and the corresponding Java interface to use them in the project?</p>
  
  <p>It is the error that now I get to the new project when trying to call the JNI function in the .so file.</p>
  
  <p><a href="https://i.stack.imgur.com/Bps1n.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Bps1n.png" alt="enter image description here"></a></p>