Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle sync failed: java.lang.StackOverflowError

Version : 3.2.1 for Windows 64-bit

I updated to the most recent version of Android Studio, and once again it has caught fire.

Any ideas on how to resolve the issue below ?

Gradle sync failed: java.lang.StackOverflowError
at com.android.tools.idea.gradle.dsl.parser.groovy.GroovyDslUtil.findInjections(GroovyDslUtil.java:823)
at com.android.tools.idea.gradle.dsl.parser.groovy.GroovyDslParser.getInjections(GroovyDslParser.java:280)
at com.android.tools.idea.gradle.dsl.parser.elements.GradleDslSimpleExpression.lambda$fetchDependencies$1(GradleDslSimpleExpression.java:664)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:913)
at com.android.tools.idea.gradle.dsl.parser.elements.GradleDslSimpleExpression.fetchDependencies(GradleDslSimpleExpression.java:663)
at com.android.tools.idea.gradle.dsl.parser.elements.GradleDslSimpleExpression.setupDependencies(GradleDslSimpleExpression.java:673)
at com.android.tools.idea.gradle.dsl.parser.elements.GradleDslSimpleExpression.resolve(GradleDslSimpleExpression.java:654)
at com.android.tools.idea.gradle.dsl.parser.elements.GradleDslSimpleExpression.
like image 591
Fabii Avatar asked Oct 11 '18 16:10

Fabii


People also ask

What does StackOverflowError mean?

StackOverflowError is a runtime error which points to serious problems that cannot be caught by an application. The java. lang. StackOverflowError indicates that the application stack is exhausted and is usually caused by deep or infinite recursion.


1 Answers

Try this.

File -> Invalidate Caches/restart -> Invalidate and Restart

Build -> Clean Project
like image 171
Mahesh Shahane Avatar answered Sep 22 '22 20:09

Mahesh Shahane