title: Android studio inherit class from external module
body: <p>I have an android studio project with several external modules (modules are located on different file paths) and I can`t manage to make the Android Studio see the abstract class from a module. </p>
  
  <p>Some of the modules depends on other modules, eg: ModuleA is a dependency for ModuleB and ModuleB is a dependency to my main app module. The ModuleB can see the abstract class from ModuleA but my main app module cannot see the abstract class from ModuleB.</p>
  
  <ul>
  <li><p>I have included on my main app module in the gradle file the module dependency </p>
  
  <p><code>dependencies {
  compile fileTree(dir: 'libs', include: ['*.jar'])
  compile 'com.android.support:design:23.1.1'<br>
  compile project(':ModuleB')
  }</code></p></li>
  <li><p>I have only <strong>one</strong> settings.gradle which is located on the root of the main app module. In the settings.gradle I have file paths to the modules I use in this project. </p></li>
  </ul>
  
  <p>In my main app module I have a class projectHelper that extends abstract class from <strong>ModuleB</strong>. eg:</p>
  
  <pre><code>public class projectHelper extends Helper {
  
  }
  </code></pre>
  
  <p>And whatever I tried I cannot make the main module app to see the abstract Helper class from ModuleB module.</p>
  
  <p>Gradle sync passes ok but the Studio reports that the Helper class cannot be resolved.</p>
  
  <p>I have tried to include the package from the ModuleB, even extend the class something like "extends com.android.ModuleB.Helper" but the class nor the package cannot be resolved.</p>
  
  <p>I am using Android Studio 1.5.1 and Android NDK with com.android.tools.build:gradle-experimental:0.4.0 plugin.</p>
  
  <p>I have done this in Eclipse and it works without a problem.</p>
  
  <p>It also offers me to move the class from ModuleB to my main App module (but I cannot do that), see image: (I had to obscure the package names).
  <a href="https://i.stack.imgur.com/PwI52.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PwI52.png" alt="module"></a></p>