title: Creating flavor specific classes
body: <p>I have created two Flavors for my Android app with package name <code>com.test.flavors</code></p>
  
  <p>I have created two flavors:</p>
  
  <pre><code>1) flavor1
  2) flavor2
  </code></pre>
  
  <p>Now I'm trying to create flavor-specific classes for it: I have created the <code>flavor1</code> folder under the <code>src</code> one, and under that I have created the package folder with name <code>com.test.flavors</code>.</p>
  
  <p>So basically it is like this:</p>
  
  <pre><code>src---&gt;|
         |-----&gt;flavor1 --&gt;java--&gt;com.test.flavors
         |
         |-----&gt;main --&gt; All classes and resources as generally present
         |
         |-----&gt;flavor2 --&gt; java--&gt;This is where I cannot create the package directory
  </code></pre>
  
  <p>Now when I am trying to achieve the same thing for the <code>flavor 2</code> I am not able to achieve it. After creating the <code>java</code> folder in <code>flavor2</code> folder I am not able to create the package folder with the name <code>com.test.flavors</code>. Also the <code>java</code> folder in Android Studio viewer is blue for <code>main</code> as well as <code>flavor1</code> where as for <code>flavor2</code> it is not blue in color.</p>
  
  <p>Can any one help me rectify the error?</p>