title: Problem switch build variant with Dynamic Feature on Android Studio 3.6
body: <p>After I upgrade Android Studio to the latest release 3.6 I faced with the problem when I switch between variants during develop app (has dynamic feature).</p>
  
  <p>My Settings <code>flavors</code> for all modules (app/library/dynamic-feature):</p>
  
  <pre><code>flavorDimensions "default"
  
  productFlavors {
      dev {
          isDefault.set(true)
          dimension "default"
      }
      live {
          dimension "default"
      }
      qa {
          dimension "default"
      }
  }
  </code></pre>
  
  <p>Default variant (both AS3.6 and previous)</p>
  
  <p><a href="https://i.stack.imgur.com/3L6ws.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3L6ws.png" alt="enter image description here"></a></p>
  
  <p>When I switched to <code>qa</code> flavor on AS 3.5.x</p>
  
  <p><a href="https://i.stack.imgur.com/dPuG1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dPuG1.png" alt="enter image description here"></a></p>
  
  <p>When I do that on AS 3.6:</p>
  
  <p><a href="https://i.stack.imgur.com/U4TNj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/U4TNj.png" alt="enter image description here"></a></p>
  
  <p>Then AS show message: </p>
  
  <p><code>Module 'xxx' has variant 'qaDebug' selected, but the module 'dynamic-feature' depends on variant 'devDebug'</code></p>
  
  <p>My configuration in module <code>dynamic-feature</code> is depended on build variant. Now, it's always fallback to <code>dev</code>.</p>
  
  <p>Is there anyway to solve this problem? </p>
  
  <p>Any suggestions are appreciated, thank you.</p>
  
  <p><strong>UPDATE</strong> 
  This problem also happens on AS4.0</p>