jun hamington
05/31/2022, 6:04 AMplugins {
id 'com.android.application' version '7.1.3' apply false
id 'com.android.library' version '7.1.3' apply false
id 'org.jetbrains.kotlin.android' version '1.6.21' apply false
}
task clean(type: Delete) {
delete rootProject.buildDir
}
this is the original one when i opened a new project,
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:7.0.4"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.31"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
mavenCentral()
maven { url "<https://jitpack.io>" }
}
}
and this is from the project file that i'm referring.
so what i am wondering about is: why the author erased plugins {}, and has buildscript {} and allprojects{}.
plus, when i copy and paste that on the new project that i have made, i get the error. (i will attach the error field that i have.)
oh, btw this is the gradle for project. thanks. 😅