title: Java module referencing inside Android studio
body: <p>I'm trying to compile Java module in Android Studio.
  I'm also referencing android.jar in the module. So, yes, module is supposed to be Java, but uses android.jar as compilation reference.
  The version SDK for this android.jar is irrelevant (I think, but it is 19 something).</p>
  
  <p>(You might ask why if I need android.jar don't I use Android module instead of Java?, well it is intermediary step to restructure our Android project).</p>
  
  <p>The problem I'm facing: 
  <img src="https://i.stack.imgur.com/irqkb.png" alt="enter image description here"></p>
  
  <p>error: cannot find symbol variable SDK_INT</p>
  
  <pre><code>apply plugin: 'java'
  dependencies {
      compile project(':ATTLogger')
      compile project(':BandwidthController')
      compile project(':iwpstack')
      compile files('libs/android.jar')
  }
  </code></pre>
  
  <p>You see – IT doesn't want to recognize some… code clearly present in the android.jar.
  And yes it sees import android.os.Build; and doesn't complain about it.</p>
  
  <p>Here is my bukd.gradle:</p>
  
  <p>Please help if you happened to solve this nuisance I've wasted half a day on.
  Thanks!</p>