title: Android Studio : "Could not get unknown property 'VERSION_NAME' for project of type org.gradle.api.Project"
body: <p>I am a newbie with Android Studio. I am trying to use this project library : <a href="https://github.com/2dxgujun/AndroidTagGroup" rel="noreferrer">https://github.com/2dxgujun/AndroidTagGroup</a> in my project.</p>
  
  <p>So what I did is to import it as a module in my project ; with the name "androidtaggroup"</p>
  
  <p>Now, I have got the following error at compilation:</p>
  
  <pre><code>"Could not get unknown property 'VERSION_NAME' for project ':androidtaggroup' of type org.gradle.api.Project."
  </code></pre>
  
  <p>Here is where the problem occurs in the Gradle file:</p>
  
  <pre><code> defaultConfig {
          applicationId 'me.gujun.android.taggroup.demo'
          minSdkVersion 8
          targetSdkVersion 21
          versionName project.VERSION_NAME // ERROR HERE !!!!
          versionCode Integer.parseInt(project.VERSION_CODE)
      }
  </code></pre>
  
  <p>Anybody can tell me how to fix this problem ?</p>
  
  <p>Thanks !!!</p>