title: Android view binding between modules
body: <p>Does view binding work between modules?</p>
  
  <blockquote>
    <p>How to reproduce: Create 2 modules >>> create layout1 in module1 and create layout2 in module2 >>> Create Fragment1 in module1 with view which will be including layout1, layout2 >>> try to get binding >>> layout1 will work becouse it is in the same module as Fragment1, but layout2 will not work becouse of wrong binding generation</p>
  </blockquote>
  
  <p>My example:</p>
  
  <p><strong>Authentication</strong> module has dependency to <strong>common</strong> module. </p>
  
  <p><strong>base_button.xml</strong> is in <strong>common</strong> module. </p>
  
  <p><strong>login_input_component.xml</strong> is in <strong>Authentication</strong> module so there is no problem. </p>
  
  <p>But this error occures on <strong>loginButton</strong> binding.</p>
  
  <p>It tries to find BaseButtonBinding in authentication module even if base_button.xml is in another module.</p>
  
  <p><a href="https://i.stack.imgur.com/NuIjd.png" rel="noreferrer"><img src="https://i.stack.imgur.com/NuIjd.png" alt="enter image description here"></a></p>
  
  <p>All modules has:</p>
  
  <pre><code>buildFeatures {
      dataBinding = true
      viewBinding = true
  }
  </code></pre>