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...
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.
Add this to your Build.gradle
allprojects {
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xmaxerrs" << "1000"
}
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With