Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Here are the instructions for adding a local jar file as a library to a module:</p> <ol> <li><p>Create a 'libs' folder in the top level of the module directory (the same directory that contains the 'src' directory)</p> <p><img src="https://i.stack.imgur.com/m6J5G.png" alt=""></p></li> <li><p>In the <code>build.gradle file</code> add the following so that your dependencies closure has:</p> <pre><code>dependencies { // ... other dependencies compile files('libs/&lt;your jar's name here&gt;') } </code></pre></li> <li><p>Android Studio should have already setup a gradlew wrapper. From the command line, navigate to the top level of your project (the directory that has a <code>gradlew</code> file).</p> <p>Run <code>./gradlew assemble</code>. This should compile the project with the library. You may need to fix errors in your build.gradle file as necessary.</p></li> <li><p>In order to have Android Studio recognize the local jar files as libraries for support while coding in the IDE, you need to take a few more steps:</p> <p>4.1. Right click on the module in the left hand panel and choose <code>Open Library Settings</code>.</p> <p><img src="https://i.stack.imgur.com/peUBT.png" alt=""></p> <p>4.2. On the left panel of the dialog, choose <code>Libraries</code>.</p> <p>4.3. Click the <code>+</code> sign above the panel second from the left -> <code>Java</code></p> <p><img src="https://i.stack.imgur.com/oMenr.png" alt="Menu"></p> <p>4.4. Select your local jar and add it to the project.</p></li> <li><p>You may need to run the above <code>./gradlew</code> command one more time</p></li> </ol>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload