Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Unable to run gradle tasks #2946

Unanswered
sumitkp18 asked this question in Q&A
Discussion options

On running the following command: $ ./gradlew :firebase-config:googleJavaFormat
I am getting this error:

FAILURE: Build failed with an exception.
* What went wrong:
Could not initialize class org.codehaus.groovy.runtime.InvokerHelper
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 823ms

Tried to upgrade gradle version, but it seems to be having some issue with kotlin dsl version and gives the following error:

Unable to find method ''void org.gradle.kotlin.dsl.support.EmbeddedKotlinProvider.addRepositoryTo(org.gradle.api.artifacts.dsl.RepositoryHandler)''
'void org.gradle.kotlin.dsl.support.EmbeddedKotlinProvider.addRepositoryTo(org.gradle.api.artifacts.dsl.RepositoryHandler)'
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart)
Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /