title: android gradle error: Can't register given path of type 'SOURCE' because it's out of content root
body: <p>I've just updated my Android Studio this morning to version 0.4.2 with gradle 1.9.
  Before updating Gradle was compiling well however, after updating it has started to show an error each time I've tried to compile or refresh Gradle configurations. 
  The message is always the same: </p>
  
  <pre><code>"Can't register given path of type 'SOURCE' because it's out of content root."
  Content root: 'C:/Users/XXX/Documents/AndroidWork/Project/modules'
  Given path: 'C:\Users\XXX\Documents\AndroidWork\Project\src\testLive\java'
  </code></pre>
  
  <p>My folder structure is:</p>
  
  <blockquote>
    <p>/Project</p>
    
    <blockquote>
      <p>-|modules/</p>
      
      <blockquote>
        <p>-|moduleA</p>
        
        <p>-|moduleB</p>
      </blockquote>
      
      <p>-|src/</p>
      
      <blockquote>
        <p>-main/</p>
        
        <blockquote>
          <blockquote>
            <p>-java</p>
            
            <p>-res</p>
            
            <p>-AndroidManifest</p>
          </blockquote>
        </blockquote>
        
        <p>-dev/</p>
        
        <blockquote>
          <blockquote>
            <p>-java</p>
            
            <p>-res</p>
            
            <p>-AndroidManifest</p>
          </blockquote>
        </blockquote>
        
        <p>-qa/</p>
        
        <blockquote>
          <blockquote>
            <p>-java</p>
            
            <p>-res</p>
            
            <p>-AndroidManifest</p>
          </blockquote>
        </blockquote>
        
        <p>-live/</p>
        
        <blockquote>
          <blockquote>
            <p>-java</p>
            
            <p>-res</p>
            
            <p>-AndroidManifest</p>
          </blockquote>
        </blockquote>
      </blockquote>
    </blockquote>
    
    <p>-|build.gradle</p>
    
    <p>-|settings.gradle --> here i've added the modules' information [include ':modules:moduleA', ':modules:moduleB']</p>
  </blockquote>
  
  <p>when dev, qa &amp; live are different flavours. </p>
  
  <p>Something I cannot understand it's why gradle is asking for "testLive" when I haven't added this test folder. </p>
  
  <p>Could someone help me with this issue?</p>
  
  <p>As I said, before updating all was working properly and without any problem. </p>
  
  <p>Thanks</p>