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

后端 未结 3 1604
别那么骄傲
别那么骄傲 2020-12-08 01:17

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?

相关标签:
3条回答
  • 2020-12-08 01:49

    Also, the Kotlin DSL equivalent is:

     gradle.projectsEvaluated {
            tasks.withType(JavaCompile::class) {
                options.compilerArgs.addAll(arrayOf("-Xmaxerrs", "1000"))
            }
        }
    
    0 讨论(0)
  • 2020-12-08 02:05

    Add this to your Build.gradle

    allprojects {
      gradle.projectsEvaluated {
        tasks.withType(JavaCompile) {
            options.compilerArgs << "-Xmaxerrs" << "1000"
        }
      }
    }
    
    0 讨论(0)
  • 2020-12-08 02:05

    "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'])
    }
    
    0 讨论(0)
提交回复
热议问题