title: In Android Studio Arctic Fox Canary 8, the app level build.gradle does not generate `allprojects` section and causes error when manually added
body: <p>When creating a new project in Android Studio Arctic Fox Canary 8, this is the app level build.gradle</p>
  <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.
  buildscript {
      repositories {
          google()
          mavenCentral()
      }
      dependencies {
          classpath &quot;com.android.tools.build:gradle:7.0.0-alpha08&quot;
          classpath &quot;org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.30&quot;
  
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  
  </code></pre>
  <p>When creating the same new project in the Android Studio 4.1.2, the app-level build.gradle file is this:</p>
  <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.
  buildscript {
      ext.kotlin_version = &quot;1.3.72&quot;
      repositories {
          google()
          jcenter()
      }
      dependencies {
          classpath &quot;com.android.tools.build:gradle:4.1.2&quot;
          classpath &quot;org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version&quot;
  
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  }
  
  allprojects {
      repositories {
          google()
          jcenter()
      }
  }
  
  task clean(type: Delete) {
      delete rootProject.buildDir
  }
  
  </code></pre>
  <p>One of the libraries I am using requires the <code>allprojects</code></p>
  <p>I manually tried to add the <code>allprojects</code> section in Canary 8, received this error:</p>
  <pre><code> problem occurred evaluating root project 'My Application'.
  &gt; Build was configured to prefer settings repositories over project repositories but repository 'Google' was added by build file 'build.gradle'
  </code></pre>
  <p>Why was the <code>allprojects</code> in Android Studio Canary 8 was removed and how can I add it back so that I can use the libraries?</p>