title: Can't programmatically get resource from another module
body: <p>I have an android project with several gradle modules. Dependencies beetween modules look like this:<br>
  app  &lt;--  coremodule &lt;-- featuremodule</p>
  
  <p>There are a resources in coremodule (strings and colors). </p>
  
  <p>When I use them in layout from featuremodule everything is OK, they are avaliable and work as expected.
  But when I try to get them programmaticully in Activity from featuremodule I get an exception: Unresolved reference: R</p>
  
  <p>So <code>android:text="@string/res_from_core_module"</code> <strong>works</strong> and <code>myTextView.setText(R.string.res_from_core_module)</code> <strong>doesn't work</strong>.</p>
  
  <p>Have anyone ideas why it happens and how to solve this?</p>