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

Javier

08/26/2020, 7:06 PM
🔘 Press the button to release AS canary 08 in Toolbox
🔘 24
20
d

Davide Giuseppe Farella

08/26/2020, 10:18 PM
⏮️ Press the button to rollback to canary 07 😄
j

Javier

08/26/2020, 10:26 PM
You can solve it changing the root build.gradle.kts to groovy, but I don't know if the content of it affects or only for being kts it doesn't work
d

Davide Giuseppe Farella

08/26/2020, 10:32 PM
Just the root?? Because I got like a sub project and ~12 modules and also a nice script that auto includes project/modules in kts
j

Javier

08/26/2020, 11:10 PM
the issue created by @romainguy said that
r

romainguy

08/26/2020, 11:11 PM
From our Gradle team:
Copy code
you cannot use 1.4 for build files/buildSrc, etc...
because Gradle uses 1.3.72 for KTS and this is part of the parent classloader so you cannot override it
I haven’t tried to solve it on my end yet
j

Javier

08/26/2020, 11:11 PM
But the problem is only with canary08, because I am using buildSrc with kts files with 1.4 with no problems, with canary07
👍 1
r

romainguy

08/26/2020, 11:12 PM
Yeah I didn’t have issues before either
But I guess for build files it’s not that big of a deal to use 1.3
The app itself can still use 1.4
j

Javier

08/26/2020, 11:13 PM
I have to check it, I was declaring the version globally inside build.gradle.kts in buildSrc
anyone know if
kotlin-dsl
is going to use 1.4 soon?
1
d

Davide Giuseppe Farella

08/27/2020, 6:53 AM
I’m not using
buildSrc
anyway, but composite build
Still using
kotlin-dsl
ofc
Using 1.3.72 for the plugin didn’t help
j

Javier

08/29/2020, 8:35 AM
I am using kts without problems
tonight I will push and share my config here
🙏 1
but probably the trick is I haven't Android gradle plugin in the root file
I had it inside buildSrc gradle file, as
dependencies { implementation(agp) }
that is my config but I haven't pushed the changes with Android, but it is the same, just adding the agp to buildSrc
d

Davide Giuseppe Farella

08/29/2020, 9:23 AM
I don’t have it either, I just have it in the classpath, then I apply to some modules
j

Javier

08/29/2020, 9:25 AM
I tried multiplataform and the preview doesn't work for me, it was working pre alpha01?
if you remove the agp from classpath, you got the same error?
d

Davide Giuseppe Farella

08/29/2020, 9:46 AM
No, I didn’t try before dev 17, but on 17 it was definitely not working. If I remove it from classpath and apply as
id(com.android.application) version ...
it tells me that a version is already defined, even it that’s not true 😄 Anyway I see the problem in Gradle 6.6-rc. But new AGP requires it and new AS requires new AGP
j

Javier

08/29/2020, 9:58 AM
I had problems with 6.6 in precompiled plugins which use AGP and I upgraded it to 6.7 (nightly version). Maybe you can try it
but the problem was related to GradleProperties
d

Davide Giuseppe Farella

08/29/2020, 10:06 AM
Oh, I’m already living enough on the edge 😄
I’ll be waiting, unless c8 will resolve some issues with KMP, which I highly doubt about
6 Views