Hi, i have an app that has build.gradle file and i...
# gradle
s
Hi, i have an app that has build.gradle file and i want it to be build.gradle.kts. But when I do appopriate changes it doesn't see kotlin dsl lambdas and throws error. What do you suggest?
a
hi, can you share more info? What errors are you seeing? What version of Gradle are you using? What have you tried to fix the problems? Have you found any similar issues online, like on StackOverflow or Gradle's GitHub Issues? What commands are you running?
s
İn my buld.gradle.kts file i use object classes to implement a library or config info's. For example implementation(Androidx.constrainlayout). Android x object is in my buildSrc file. And Gradle says Androidx cannot resolved.
İt works on my other project that's why I didn't need to search it on GitHub etc
v
What you describe sounds like it should work. Can you provide an MCVE that shows your problem? Besdides that, you should strongly consider stopping using that legacy practice and instead switch over to version catalogs. 🙂
s
İ am really sorry to bother all people with that stupid question. İ created build.gradle.kts file for buildSrc in wrong package. My code works now when I changed the gradle.kts file location from src package to buildSrc package
👌 1
👍 1