Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle build finished with 200 error(s) - change limit in android studio

MAIN QUESTION

The main question is still unanswered: Is there a way to change the limit that is printed to the console in android studio?

OLD CONTENT

I'm using code generation libraries. So a single error can suddenly lead to hundreds of errors resulting in this single error.

Currently I've the problem that I can't find the error, as I get 200 errors of error: cannot find symbol class ......

How can I change the limit of 200 to a bigger number?

EDIT

No code, as it is a android studio question

EDIT2

I know, it can happen if I open a xml file and insert some invalid code (by accident). It just happens by accident... The problem is, that android studio stops writing the errors to the error output console before the actual error source is visible...

SOLUTION FOR MY PROBLEM

In my special case I added a field to class and declared it as private. This lead to the problem, that the code generator for parcelable failed. It prints an error, but it can't be seen due to the 200 errors limit...

like image 445
prom85 Avatar asked Aug 03 '15 16:08

prom85


People also ask

How do I fix Gradle issues?

For this, you have to connect your PC to the internet and you have to open your Android studio. After opening your project click on the Sync Project with Gradle files option. This will automatically download the new Gradle files and will fix the issue which is caused by the Gradle files.


1 Answers

Add this to your Build.gradle

allprojects {
  gradle.projectsEvaluated {
    tasks.withType(JavaCompile) {
        options.compilerArgs << "-Xmaxerrs" << "1000"
    }
  }
}
like image 74
DallinDyer Avatar answered Sep 22 '22 12:09

DallinDyer