SolvedBandhook Kotlin Gradle Core Plugins (plugin is not in 'org.gradle' namespace)

Hi, I got the error when build this project:

Error:(21, 0) Plugin [id: 'com.android.application'] was not found in any of the following sources:

  • Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
  • Gradle Central Plugin Repository (plugin dependency must include a version number for this source)
    Open File

what should I do?

19 Answers

✔️Accepted Answer

@antoniolg you need to add this line on your settings.gradle
rootProject.buildFileName = 'build.gradle.kts' above include ':app'

Other Answers:

Ok, did it myself in the end. Can anyone make sure that it works for them with the change I did? Otherwise I'll reopen it. Thanks!

Related Issues:

29
Bandhook Kotlin Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
@antoniolg you need to add this line on your settings.gradle rootProject.buildFileName = 'build.grad...