jsericksk / Simple-Chat

Simple chat project created with Jetpack Compose and Firebase, using clean architecture + MVVM.
MIT License
19 stars 3 forks source link

UnknownPluginException #3

Open be-the-nerd opened 1 week ago

be-the-nerd commented 1 week ago

Plugin [id: 'org.gradle.kotlin.kotlin-dsl', version: '2.1.7'] was not found in any of the following sources:

jsericksk commented 2 days ago

Hi, @be-the-nerd. Sorry for the delay. I managed to reproduce this issue here the first time I cloned the project. Initially I tried to change the lines below in buildSrc/build.gradle.kts and sync again. See here for more information.

Before:

plugins {
  `kotlin-dsl`
}

After:

plugins {
   id("org.gradle.kotlin.kotlin-dsl") version "4.3.1"
}

The above change didn't work. For some reason, my Gradle was in offline mode, so I changed the lines back to how it was before and tried to sync again, and it worked. I recommend checking if your Gradle is not in offline mode and doing the same.