Although this is not directly related to compose, ...
# compose
h
Although this is not directly related to compose, it's about AS 4.2 Canary 8 and Gradle 6.6. I'm getting the following error when I try to build my compose project which is using gradle kotlin dsl, with the specified AS and gradle versions
Copy code
Unable to load class 'kotlin.KotlinNothingValueException'.

This is an unexpected error. Please file a bug containing the idea.log file.
Build doesn't even start. It just fails with this exception. I've tried the same project on both macOS and Windows. Unfortunately I've got the same result.
j
It is related to using kts in the root gradle file with the agp plugin
🤔 1
h
Here is the full stacktrace https://pastebin.com/kP9t7TJE
It is related to using kts in the root gradle file with the agp plugin
should I convert my root gradle file back to groovy?
j
I am not having this problem because I had the agp plugin inside buildSrc instead of there
h
oh, that makes sense. Let me try that
j
in a few hours I will push the config
j
@Halil Ozercan Have you managed to fix the error?
h
Switching to using groovy at root level and leveraging buildSrc got rid of the problem.
that config is working for me
d
Ran into the same thing, there's an issue for it here with a workaround (should be fixed in next release) https://issuetracker.google.com/issues/166468915