title: Module library Jar not shown in External Libraries in Android Studio
body: <p>I am having trouble getting a jar library to show up under <code>External Libraries</code> in Android Studio.  I am trying to add javadoc for this library, and the only method I've found online is to right click on the library in <code>External Libraries</code> and select <code>Library Properties...</code>.  </p>
  
  <p>The project structure is a tree of many modules:</p>
  
  <pre><code>rootsdk / 
          main.jar
          main-javadoc.jar
          plugins /
                  plugin1 / 
                          build.gradle
                          ...
                  plugin2 /
                          build.gradle
                          ...
                  ...
  </code></pre>
  
  <p>The dependency is declared in the <code>build.gradle</code> files like:</p>
  
  <pre><code>compileOnly files('../../main.jar')
  </code></pre>
  
  <p>If I open up the individual directories <code>plugin1</code>, then the dependency shows up in <code>External Libraries</code> correctly.  But if I open up the <code>rootsdk</code> project, it does not appear.  All of the modules are listed and compilable from the root project, and I can use classes defined in the library just fine, but it does not appear under <code>External Libraries</code>, so I cannot add the javadoc for it.</p>
  
  <p>The strange thing is some of the plugins use other libraries, but defined differently:</p>
  
  <pre><code>repositories {
      flatDir {
       dirs 'libs'
      }
  }
  
  ...
  
  implementation(name: 'core-debug', ext: 'aar')
  </code></pre>
  
  <p>And these libraries show up under <code>External Libraries</code> as expected.  </p>
  
  <p>Is there something missing to force <code>main.jar</code> to show up under <code>External Libraries</code>, or is this a bug in AS?</p>