title: androidx.navigation library update to 2.2.2 version Release build issues
body: <p>I have issue with androidx.navigation last updates</p>
  <p>I have noticed that after fresh update <strong>(2.2.2)</strong> crashed if build is <strong>RELEASE</strong>
  with error like</p>
  <pre><code>Caused by: android.view.InflateException: Binary XML file line #12 in 
  com.somedomain.android:layout/activity_main: Binary XML file line #12 in 
  com.somedomain.android:layout/activity_main: Error inflating class 
  androidx.fragment.app.FragmentContainerView
  
  
  Caused by: android.view.InflateException: Binary XML file line #12 in 
  com.somedomain.android:layout/activity_main: Error inflating class 
  androidx.fragment.app.FragmentContainerView
  
  androidx.fragment.app.Fragment$e: Unable to instantiate fragment 
  androidx.navigation.fragment.NavHostFragment: make sure class name exists
  </code></pre>
  <p>I am using:</p>
  <pre><code>ext.versions = [
     ...
     nav_version        : '2.2.2',
  ]
  
  ext.libs = [
     ...
     nav_fragment       : &quot;androidx.navigation:navigation-fragment-ktx:$versions.nav_version&quot;,
     nav_ui             : &quot;androidx.navigation:navigation-ui-ktx:$versions.nav_version&quot;,
  ]
  </code></pre>
  <p>In App gradle</p>
  <pre><code> ...
      buildTypes {
          debug {
              manifestPlaceholders = [crashlyticsCollectionEnabled: &quot;false&quot;]
              ext.enableCrashlytics = false
              signingConfig signingConfigs.debug
              debuggable = true
          }
         
          release {
              manifestPlaceholders = [crashlyticsCollectionEnabled: &quot;true&quot;]
              ext.enableCrashlytics = true
              minifyEnabled true
              shrinkResources true
              debuggable = false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
              signingConfig signingConfigs.release
          }
      }
      ...
  implementation libs.nav_fragment
  implementation libs.nav_ui
  </code></pre>
  <p>Navigation host in activity_main.xml</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
     &lt;layout 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;
      tools:context=&quot;.MainActivity&quot;&gt;
  
      &lt;FrameLayout
          android:id=&quot;@+id/container&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;match_parent&quot;&gt;
  
          &lt;androidx.fragment.app.FragmentContainerView
              android:id=&quot;@+id/main_nav_host&quot;
              android:name=&quot;androidx.navigation.fragment.NavHostFragment&quot;
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;match_parent&quot;
              app:defaultNavHost=&quot;true&quot;
              app:navGraph=&quot;@navigation/main_navigation&quot; /&gt;
      
      &lt;/FrameLayout&gt;
  
  &lt;/layout&gt;
  </code></pre>
  <p>Language: Kotlin</p>
  <p>Has anybody face with the problem like this?</p>
  <p>Note: With version 2.2.1 everything was OK.
  Debug version build also is OK</p>
  <p>I think the issue related to this change.
  according to official Android nav components <a href="https://developer.android.com/jetpack/androidx/releases/navigation" rel="nofollow noreferrer">release notes</a></p>
  <p>The navigation-common-ktx ProGuard rules now correctly only keep the NavArgs classes that are used rather than all NavArgs instances. This was previously released in Navigation 2.3.0-alpha03. (b/150213558</p>