android,kotlin2023. 2. 20. 14:46

[android]all buildscript {} blocks must appear before any plugins {} blocks in the script 해결방법

 

project -> build_gradle 에서 plugins{} buildscript{} 가 앞으로 가야 된다는것이다...

 

buildscript {
    repositories {
        mavenCentral()
    }
}

// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
    id 'com.android.application' version '7.3.1' apply false
    id 'com.android.library' version '7.3.1' apply false
    id 'org.jetbrains.kotlin.android' version '1.7.20' apply false
}

 

Posted by thdeodls85