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 :)

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Balwinder Singh Rajput
Balwinder Singh Rajput

Written by Balwinder Singh Rajput

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

Responses (1)

Write a response