title: Cannot convert from X to Fragment if the base class is derived from Fragment in another project
body: <p>I have a wip Framework project in which I derived the Fragment class creating OnlineFragment.
  In my current app project I created the Account class who inherits OnlineFragment without any problems
  but when I try to instantiate in the main activity
      Fragment frag = new Account(); </p>
  
  <p>I get this error:</p>
  
  <blockquote>
    <p>Type mismatch: cannot convert from Account to Fragment</p>
  </blockquote>
  
  <p>here the classes definitions</p>
  
  <p>project: com.x.framework</p>
  
  <pre><code>public class OnlineFragment extends Fragment {
  </code></pre>
  
  <p>project: com.x.app</p>
  
  <pre><code>public class Account extends OnlineFragment {
  </code></pre>