title: Failed to resolve: com.github.PhilJay.MPAndroidChart:v2.2.4
body: <p>When building, Gradle gave me the <code>Failed to resolve: com.github.PhilJay:MPAndroidChart:v2.2.4</code> error.</p>
  
  <p>I already added <code>jitpack</code> in <code>build.gradle</code> here:</p>
  
  <pre><code>buildscript {
      repositories {
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:2.1.0'
  
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  }
  
  allprojects {
      repositories {
          jcenter()
          flatDir {
              dirs 'aar'
          }
          maven { url "https://jitpack.io" }
      }
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>
  
  <p>This is based <a href="https://stackoverflow.com/a/37892027/1968739">here</a>. What am I missing?</p>