<https://kotlinlang.slack.com/archives/C19FD9681/p...
# announcements
j
If it works from command line but fails from IDE, then environment is likely to blame. First thing I'd check is JAVA_HOME, see which version of the JDK is actually being used. Invocation Target Exception can also mean you have version mismatches in dependencies. You can use gradle to print the dependency tree and then compare the versions against what is used by the IDE. Remember that since it's failing in precompilation (kapt) you need to look at the classpath for the buildscript section.