https://kotlinlang.org logo
d

Davide Giuseppe Farella

01/10/2021, 2:53 PM
Hello, I have a Multiplatform with Compose project which was working fine. Then I upgraded to AS canary canary 3, AGP alpha 3 and Gradle 6.8-rc-1 and started having this issue during Android build
Could not determine the dependencies of task ‘clientandroid:compileDebugJavaWithJavac’.
> Could not resolve all dependencies for configuration ‘clientandroid:debugRuntimeClasspath’.
> A problem occurred configuring project ‘moviesremote:tmdb’.
> org.gradle.api.internal.initialization.DefaultClassLoaderScope@4ba09663 must be locked before it can be used to compute a classpath!
Meanwhile I moved to canary 4, AGP 4, Gradle 6.8 stable but still there. Any ideas?
j

Javier

01/10/2021, 3:00 PM
change Gradle 6.8 to 6.7.1 please
I had a problem with 6.8 and I think it is related
d

Davide Giuseppe Farella

01/10/2021, 3:01 PM
That means I have to revert both AGP and AS 😞 I was waiting in order to avoid that
I think it’s related to the
testApi
stuff, as tryin to sync with 6.7.1 without reverting the workaround gives me this error. The modules are exactly the ones with the workaround
j

Javier

01/10/2021, 3:04 PM
mmm
try Gradle 7 nightly
it is just to confirm the Gradle 6.8 issue
this is my issue: Anyone is getting in a KMM project this exception with Gradle 6.8? Gradle 6.7.1 is working fine and the 7.0 nightly of a few days ago is working too Could not initialize class jdk.internal.math.FormattedFloatingDecimal
d

Davide Giuseppe Farella

01/10/2021, 3:08 PM
I’ll give it a quick try, otherwise I’ll give up for this time and learn to come check Slack before updates, I’m kinda sick to use 90% of my free time in fixing weird bugs and 10% on actually working on my proj 😄
1
Can you guide me where to find Gradle nightly pls? Google didn’t help
j

Javier

01/10/2021, 3:18 PM
./gradlew wrapper --gradle-version=7.0-20210109230031+0000
run that
to return to another just change the version and run it
d

Davide Giuseppe Farella

01/10/2021, 4:01 PM
thanks, tryin
Same…
j

Javier

01/10/2021, 4:34 PM
😕
24 Views