Caused by: org.gradle.api.invalidusercodeexception: cannot run project.afterevaluate(closure) when the project is already evaluated.
Explanation: The error message you are seeing is related to a specific exception in Gradle called InvalidUserCodeException. The exception is triggered when you try to run the project.afterEvaluate closure but the project has already been evaluated. Gradle allows you to define tasks and configurations for your project in a build script. The build script is … Read more