title: How to add Repository maven in new Android Studio Project setup(2022)?
body: <p>I want to use the <a href="https://github.com/PhilJay/MPAndroidChart" rel="nofollow noreferrer">maven library</a> in the android studio project. in the library documentation, they mention adding like this,</p>
  <pre><code>repositories {
      maven { url 'https://jitpack.io' }
  }
  
  dependencies {
      implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
  } 
  </code></pre>
  <p>But in the new android studio <code>build.gradle</code> file looks like this</p>
  <pre><code>plugins {
      id 'com.android.application' version '7.1.0' apply false
      id 'com.android.library' version '7.1.0' apply false
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  </code></pre>
  <p>So, how do I want to add this library repository, Thank you</p>