wiktor
06/03/2021, 9:25 PMtodo
app from examples? Android and iOS works fine but for desktop I get (on mac):
* What went wrong:
Could not determine the dependencies of task ':desktop:compileJava'.
> Could not resolve all dependencies for configuration ':desktop:compileClasspath'.
> A problem occurred configuring project ':common:utils'.
> org.gradle.api.internal.initialization.DefaultClassLoaderScope@2bfecddc must be locked before it can be used to compute a classpath!
wiktor
06/03/2021, 9:26 PMcodeviewer
) works without any issueswiktor
06/03/2021, 9:29 PM* Exception is:
org.gradle.api.internal.tasks.TaskDependencyResolveException: Could not determine the dependencies of task ':desktop:compileJava'.
at org.gradle.api.internal.tasks.CachingTaskDependencyResolveContext.getDependencies(CachingTaskDependencyResolveContext.java:71)
at org.gradle.execution.plan.TaskDependencyResolver.resolveDependenciesFor(TaskDependencyResolver.java:46)
at org.gradle.execution.plan.LocalTaskNode.getDependencies(LocalTaskNode.java:155)
at org.gradle.execution.plan.LocalTaskNode.resolveDependencies(LocalTaskNode.java:123)
at org.gradle.execution.plan.DefaultExecutionPlan.doAddNodes(DefaultExecutionPlan.java:171)
at org.gradle.execution.plan.DefaultExecutionPlan.addEntryTasks(DefaultExecutionPlan.java:135)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph.addEntryTasks(DefaultTaskExecutionGraph.java:160)
at org.gradle.execution.TaskNameResolvingBuildConfigurationAction.configure(TaskNameResolvingBuildConfigurationAction.java:49)
at org.gradle.execution.DefaultBuildConfigurationActionExecuter.configure(DefaultBuildConfigurationActionExecuter.java:55)
at org.gradle.execution.DefaultBuildConfigurationActionExecuter.access$000(DefaultBuildConfigurationActionExecuter.java:26)
at org.gradle.execution.DefaultBuildConfigurationActionExecuter$1.proceed(DefaultBuildConfigurationActionExecuter.java:63)
at org.gradle.execution.DefaultTasksBuildExecutionAction.configure(DefaultTasksBuildExecutionAction.java:45)
at org.gradle.execution.DefaultBuildConfigurationActionExecuter.configure(DefaultBuildConfigurationActionExecuter.java:55)
at org.gradle.execution.DefaultBuildConfigurationActionExecuter.access$000(DefaultBuildConfigurationActionExecuter.java:26)
at org.gradle.execution.DefaultBuildConfigurationActionExecuter$1.proceed(DefaultBuildConfigurationActionExecuter.java:63)
at org.gradle.execution.ExcludedTaskFilteringBuildConfiguratio
jim
06/03/2021, 11:34 PMtodo
app sample using ./gradlew :desktop:run --no-daemon
on the latest commit (21146ed1d5174a9a1b2dad6e1376d4bd9c764b7e
), so it appears the issue is on your end.jim
06/03/2021, 11:37 PM~/.gradle/
directory with rm -rf ~/.gradle/
2. use jps -m
to find anything with the word "Daemon" in it, especially gradle daemons, and kill them using kill -9 [pid]
3. do a ./gradlew clean --no-daemon
jim
06/03/2021, 11:39 PM./gradlew --version --no-daemon
on your machine.eygraber
06/04/2021, 5:06 AMgradle (or ./gradlew) --stop
It seems like if you update while a daemon is running it can run into some issues. Something about not isolating classpaths IIRCwiktor
06/04/2021, 10:51 AM--stop
and removing ~/.gradle/cache
before asking for a help - so it turns out removing whole folder does the trickjim
06/04/2021, 4:15 PM