Create a gist now

Instantly share code, notes, and snippets.

Workaround for VerifyError in Android+Groovy builds
// add this to build.gradle
gradle.taskGraph.whenReady {
allprojects {
tasks.withType(GroovyCompile) { task ->
logger.lifecycle("Task $task")
task.groovyOptions.forkOptions.jvmArgs=['-noverify']
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment