Building tess-two into a project using Android Studio's gradle build
<p>There are answers about getting the <code>tess-two</code> project integrated into an  Android project within <em>Android Studio</em>, but many are out-dated and none used the current capabilities defined here:</p>

<blockquote>
  <p>Using Android Studio 2.2 and higher, you can use the NDK to compile C and C++ code into a native library and package it into your APK using Gradle, the IDE's integrated build system. Your Java code can then call functions in your native library through the Java Native Interface (JNI)</p>
</blockquote>

<p>What specific steps would be required to make <code>tess-two</code> functionality a part of the resulting APK, using functionality within <em>Android Studio</em>, rather than external file placement, manipulation and command line tools?  So taking the building, creation of *.so files into the IDE.  Specifically using just <em>Android Studio</em>'s <strong>integrated build system</strong> (Gradle) as described <a href="https://developer.android.com/ndk/guides/index.html" rel="nofollow noreferrer">here</a>.</p>

<p><strong>1. Start a new project</strong></p>

<p><a href="https://i.stack.imgur.com/es3k8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/es3k8.png" alt="starting a new Android Studio project with C++ support"></a></p>

<p><strong>2. Import Tess-Two into the project</strong></p>

<p><a href="https://i.stack.imgur.com/ZiVHX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZiVHX.png" alt="import tess-two as a module in the new project"></a></p>

<p><strong>2b. Add any needed plug-ins</strong></p>

<p><a href="https://i.stack.imgur.com/5FW1Y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5FW1Y.png" alt="add to tess-two build.gradle to pull required plug-ins"></a></p>

<p><strong>3. Add code in the main activity to get native functionality</strong></p>

<p><a href="https://i.stack.imgur.com/Dot81.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Dot81.png" alt="static import of tess-two native files"></a></p>

<p><strong>4. Configure <em>Android Studio</em> build so that native functionality is available</strong></p>

<p><em>This is where the specifics are required</em></p>