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?
Also, the Kotlin DSL equivalent is:
gradle.projectsEvaluated {
tasks.withType(JavaCompile::class) {
options.compilerArgs.addAll(arrayOf("-Xmaxerrs", "1000"))
}
}
Add this to your Build.gradle
allprojects {
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xmaxerrs" << "1000"
}
}
}
"error: cannot find symbol class" means your build.gradle
file doesn't contain a reference to the classes that your source code refers to. Adding a library to the project structure will only affect the IDE you're using, and not the actual build script Gradle uses to actually compile your work.
For instance, if you have several Jar files in your libs folder at the root of your project, you need to make sure your build script compiles with them:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
}