cannot find symbol class BR?? Errrrrr……Where is the ERROR ?

Balwinder Singh Rajput
1 min readJul 8, 2020

--

File →Invalidate cache is not a solution for every problem especially when it comes to incognito mode errors :P . Errors that won’t show up in android studio.

Why?
There is a limit(or rather i would say default ) enforced by javac compiler to show only 100 errors.

but luckily can be modified by passing an argument to the compiler as mentioned below.

Solution : add this to your top-level build.gradle file.

allprojects {
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xmaxerrs" << "4000"
options.compilerArgs << "-Xmaxwarns" << "4000"
}
}
}

Enjoy :)

--

--

Balwinder Singh Rajput

Hi there 👋 Namaste 🙏🏻 .👨‍💻 developing apps from 12+ years. 👨‍🏫 IoT | E-commerce | baking domain expert.