https://kotlinlang.org logo
#compose
Title
# compose
h

Halil Ozercan

08/29/2020, 10:18 AM
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

Javier

08/29/2020, 10:23 AM
It is related to using kts in the root gradle file with the agp plugin
🤔 1
h

Halil Ozercan

08/29/2020, 10:24 AM
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

Javier

08/29/2020, 10:26 AM
I am not having this problem because I had the agp plugin inside buildSrc instead of there
h

Halil Ozercan

08/29/2020, 10:27 AM
oh, that makes sense. Let me try that
j

Javier

08/29/2020, 10:27 AM
in a few hours I will push the config
j

Julius Marozas

08/29/2020, 4:38 PM
@Halil Ozercan Have you managed to fix the error?
h

Halil Ozercan

08/29/2020, 4:38 PM
Switching to using groovy at root level and leveraging buildSrc got rid of the problem.
that config is working for me
d

Daniel Rampelt

08/29/2020, 7:48 PM
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
2 Views