title: Android resource linking failed, error: attribute defaultNavHost (aka ...) not found, ttribute navGraph (aka...) not found
body: <p>I tried to implement the Navigation feature in my app. When I try to build the app the output says:</p>
  <pre><code>Android resource linking failed
  /home/mateusz/AndroidStudioProjects/TakeAndTie/app/src/main/res/layout/activity_main.xml:23: error: attribute defaultNavHost (aka com.mateuszpolito.takeandtie:defaultNavHost) not found.
  /home/mateusz/AndroidStudioProjects/TakeAndTie/app/src/main/res/layout/activity_main.xml:23: error: attribute navGraph (aka com.mateuszpolito.takeandtie:navGraph) not found.
  error: failed linking file resources.
  </code></pre>
  <p>Here is the nav_host_fragment from activity_main.xml:</p>
  <pre><code>        &lt;fragment
                  android:id=&quot;@+id/nav_host_fragment&quot;
                  android:name=&quot;androidx.navigation.fragment.NavHostFragment&quot;
                  android:layout_width=&quot;0dp&quot;
                  android:layout_height=&quot;0dp&quot;
                  app:layout_constraintLeft_toLeftOf=&quot;parent&quot;
                  app:layout_constraintRight_toRightOf=&quot;parent&quot;
                  app:layout_constraintTop_toTopOf=&quot;parent&quot;
                  app:layout_constraintBottom_toBottomOf=&quot;parent&quot;
  
                  app:defaultNavHost=&quot;true&quot;
                  app:navGraph=&quot;@navigation/nav_graph&quot; /&gt;
  </code></pre>
  <p>I have implemented navigation in my app level build.gradle:</p>
  <pre><code>    implementation &quot;androidx.navigation:navigation-ui-ktx:2.1.0-alpha02&quot;
  </code></pre>
  <p>I am using Android Studio version 3.4</p>