title: java.lang.ClassCastException for <include> tag using DataBinding
body: <p>I have the following setup. <code>main</code> module depends on <code>search</code> module which depends on <code>commonui</code> module. All three modules are using data binding. Inside <code>commonui</code> module I have <code>toolbar.xml</code> file. This file is used inside <code>search</code> module in <code>fragment.xml</code> file using <code>&lt;include&gt;</code> tag like this:</p>
  
  <pre><code>&lt;include
       android:id="@+id/fem_toolbar"
       layout="@layout/toolbar"
       android:layout_width="match_parent"
       android:layout_height="wrap_content"/&gt;
  </code></pre>
  
  <p>After running the app, when navigating to fragment with this xml I get following crash:</p>
  
  <pre><code>E/CrashLogHandler: Stack trace: java.lang.RuntimeException: Unable to start activity ComponentInfo{xx.xxxxx.debug/xx.xxxxx.search.Activity}: java.lang.ClassCastException: xx.xxxxx.databinding.ToolbarBindingImpl cannot be cast to xx.xxxxx.common.ui.databinding.ToolbarBinding
          at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2817)
          at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892)
          at android.app.ActivityThread.-wrap11(Unknown Source:0)
          at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593)
          at android.os.Handler.dispatchMessage(Handler.java:105)
          at android.os.Looper.loop(Looper.java:164)
          at android.app.ActivityThread.main(ActivityThread.java:6541)
          at java.lang.reflect.Method.invoke(Native Method)
          at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
  </code></pre>
  
  <p>Does anybody have an idea what is happening?
  I have also seen a similar issue with this library: <a href="https://github.com/heinrichreimer/material-intro/issues/256" rel="nofollow noreferrer">https://github.com/heinrichreimer/material-intro/issues/256</a></p>