title: Kotlin DSL Unresolved reference on settings.gradle.ktl
body: <p>I am getting an unresolved reference build error on settings.gradle.kts when I am referencing variables from the buildSrc module.</p>
  <p>The strange thing is that when I am using the variables from buildSrc, for example to the app level build.gradle.kts, everything works fine.</p>
  <p>Also the error occurs only when I build/sync and I am not getting that error(red highlights) on the text editor and the navigation to that variable works fine.</p>
  <p>Attached you find an image with the setup, thanks a lot.</p>
  <p><a href="https://i.stack.imgur.com/PxsyC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PxsyC.png" alt="error messages" /></a></p>
  <p>Edit: Changing gradle version from 6.5 to 5.6.4 seems to fixed the problem, but I do not like that approach.</p>