- 
  Notifications
 
You must be signed in to change notification settings  - Fork 648
 
-
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.
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
 
 Sign up for free
 to join this conversation on GitHub.
 Already have an account?
 Sign in to comment