I am getting an unresolved reference build error on settings.gradle.kts when I am referencing variables from the buildSrc module.
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.
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.
Attached you find an image with the setup, thanks a lot.
Edit: Changing gradle version from 6.5 to 5.6.4 seems to fixed the problem, but I do not like that approach.
