Caused by orggradleapiInvalidUserDataException Cannot change dependencies of configuration classpath after it has been resolved
This error message is thrown by Gradle when you try to modify the dependencies of the classpath configuration after it has already been resolved. The classpath configuration is used to specify the dependencies required for building your project.
To resolve this issue, you need to ensure that you are not making any changes to the classpath configuration after it has been resolved. This typically happens when you try to modify the build.gradle file while a build is in progress.
To fix this error, you can try the following steps:
-
Make sure that you are not modifying the
build.gradlefile while a build is in progress. Gradle resolves the dependencies during the configuration phase, so any changes made to the dependencies after this phase will result in the mentioned error. -
If you are using an IDE, make sure that you are not trying to modify the project settings or build file during a build. Wait for the build to finish before making any changes.
-
If you need to modify the dependencies, you can try running the build again after making the necessary changes. Gradle will resolve the updated dependencies during the configuration phase.
If the issue persists, it might be helpful to provide more context or the specific changes you are trying to make to the classpath configuration in order to investigate further
原文地址: https://www.cveoy.top/t/topic/icGJ 著作权归作者所有。请勿转载和采集!