Created
October 25, 2018 06:35
-
-
Save MFlisar/eca8ae6c2e6a619913ab05d503a4368f to your computer and use it in GitHub Desktop.
Example Project build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Top-level build file where you can add configuration options common to all sub-projects/modules. | |
apply from: './versions.gradle' | |
buildscript { | |
repositories { | |
// ... | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:' + versions.gradlePlugin | |
// ... | |
} | |
} | |
allprojects { | |
repositories { | |
google() | |
jcenter() | |
mavenCentral() | |
// ... | |
} | |
gradle.projectsEvaluated { | |
tasks.withType(JavaCompile.class) { | |
options.compilerArgs << "-Xmaxerrs" << "10000" | |
} | |
} | |
afterEvaluate { | |
if (project.plugins.hasPlugin("kotlin-kapt")) { | |
kapt { | |
javacOptions { | |
option("-Xmaxerrs", 10000) | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've tried this but was not successful. Possible to help here? https://stackoverflow.com/questions/53020234/kapt-an-exception-occurred-java-util-nosuchelementexception