Android Gradle Sync fails on Configure Build stage with error java.lang.NoSuchFieldError: JAVA_LETTER_OR_DIGIT
I encountered this issue while adding Firebase
dependency in my project.
Turned out, I was using an outdated version of Gradle
.
So I upgraded Gradle
build version present in my Project Level Gradle.
Check your gradle dependency . if you are using any recent dependency configuration using "+". It might be an issue.
If someone's still facing the same issue while adding Firebase to their project, here's a working solution. I encountered the same issue while integrating Firebase in my project.
Fixed it by changing gradle plugin version:
classpath 'com.android.tools.build:gradle:3.5.2'
And setting distributionUrl in gradle-wrapper.properties to distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip