title: Navigation destination com.example.multimodulepoc:id/navigation_home is not a direct child of this NavGraph
body: <p>I'm trying to add navigation of  multiple modules in the app using <strong></strong> tag I've provided my startDestination from <code>home</code> module. Its working fine when I've only one <code>&lt;include&gt;</code> tag with startDestination. App getting crash with following error message when I added multiple module navigations. I found no useful links in SO. Please help us to resolve this issue. Thanks in advance.</p>
  <pre><code>Caused by: java.lang.IllegalArgumentException: navigation destination com.example.multimodulepoc:id/navigation_home is not a direct child of this NavGraph 
  </code></pre>
  <p>Below is my navigation xml and dependency.</p>
  <pre><code>app build.gradle.
  
  dependencies {
      ....
      implementation project( ':home')
      implementation project( ':Dashobard')
      ....
  }
  </code></pre>
  <p>App level Navigation xml.</p>
  <pre><code>&lt;navigation xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
      xmlns:tools=&quot;http://schemas.android.com/tools&quot;
      android:id=&quot;@+id/mobile_navigation&quot;
      app:startDestination=&quot;@id/navigation_home&quot;&gt;
  
      &lt;include app:graph=&quot;@navigation/home_navigation&quot; /&gt;
      &lt;include app:graph=&quot;@navigation/dashboard_navigation&quot; /&gt;
  
  &lt;/navigation&gt;
  </code></pre>
  <p>Home module Navigation</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;navigation xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
      xmlns:tools=&quot;http://schemas.android.com/tools&quot;
      android:id=&quot;@+id/home_navigation&quot;
      app:startDestination=&quot;@+id/navigation_home&quot;&gt;
      &lt;fragment
          android:id=&quot;@+id/navigation_home&quot;
          android:name=&quot;com.ns.mpos.home.home.HomeFragment&quot;
          android:label=&quot;@string/title_home&quot;
          tools:layout=&quot;@layout/fragment_home&quot; /&gt;
  &lt;/navigation&gt;
  </code></pre>
  <p>Dashboard Navigation</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;navigation xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
      xmlns:tools=&quot;http://schemas.android.com/tools&quot;
      android:id=&quot;@+id/dashboard_navigation&quot;
      app:startDestination=&quot;@+id/navigation_dashboard&quot;&gt;
  
      &lt;fragment
          android:id=&quot;@+id/navigation_dashboard&quot;
          android:name=&quot;com.ns.mpos.dashobard.dashboard.DashboardFragment&quot;
          android:label=&quot;@string/title_dashboard&quot;
          tools:layout=&quot;@layout/fragment_dashboard&quot; /&gt;
  
  &lt;/navigation&gt;
  </code></pre>